mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
moved the Thread.Sleep(500), to the correct side of the ar.AsyncWaitHandle.WaitOne(timeOut*1000, false); call.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user