moved the Thread.Sleep(500), to the correct side of the ar.AsyncWaitHandle.WaitOne(timeOut*1000, false); call.
parent
e3a6a370fa
commit
770c395e86
|
@ -1460,8 +1460,8 @@ namespace OpenSim.Region.Communications.OGS1
|
||||||
AsyncCallback ConnectedMethodCallback = new AsyncCallback(ConnectedMethod);
|
AsyncCallback ConnectedMethodCallback = new AsyncCallback(ConnectedMethod);
|
||||||
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
|
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
|
||||||
IAsyncResult ar = socket.BeginConnect(m_EndPoint, ConnectedMethodCallback, socket);
|
IAsyncResult ar = socket.BeginConnect(m_EndPoint, ConnectedMethodCallback, socket);
|
||||||
System.Threading.Thread.Sleep(500);
|
|
||||||
ar.AsyncWaitHandle.WaitOne(timeOut*1000, false);
|
ar.AsyncWaitHandle.WaitOne(timeOut*1000, false);
|
||||||
|
System.Threading.Thread.Sleep(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Available
|
public bool Available
|
||||||
|
|
Loading…
Reference in New Issue