moved the Thread.Sleep(500), to the correct side of the ar.AsyncWaitHandle.WaitOne(timeOut*1000, false); call.

0.6.0-stable
MW 2008-04-16 16:28:02 +00:00
parent e3a6a370fa
commit 770c395e86
1 changed files with 1 additions and 1 deletions

View File

@ -1460,8 +1460,8 @@ namespace OpenSim.Region.Communications.OGS1
AsyncCallback ConnectedMethodCallback = new AsyncCallback(ConnectedMethod);
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IAsyncResult ar = socket.BeginConnect(m_EndPoint, ConnectedMethodCallback, socket);
System.Threading.Thread.Sleep(500);
ar.AsyncWaitHandle.WaitOne(timeOut*1000, false);
System.Threading.Thread.Sleep(500);
}
public bool Available