From 770c395e86b234822d249e146ec845d3a5108b6b Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 16 Apr 2008 16:28:02 +0000 Subject: moved the Thread.Sleep(500), to the correct side of the ar.AsyncWaitHandle.WaitOne(timeOut*1000, false); call. --- OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Communications/OGS1') diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 43bba8b..9a7274c 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -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 -- cgit v1.1