Changeset 753


Ignore:
Timestamp:
12/06/08 10:32:16 (6 years ago)
Author:
lowjoel
Message:

Fixed the problem of spurious pipes which spontaneously break... I think/hope.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/RemoteExecutor.cs

    r749 r753  
    128128                    EndWaitForConnection, server); 
    129129 
    130                 while (!server.IsConnected && !asyncWait.AsyncWaitHandle.WaitOne(15)) 
    131                     if (Thread.CurrentThread.ThreadState == ThreadState.AbortRequested) 
    132                         break; 
    133  
    134130                //Execute the handler if the server was connected. 
    135                 if (server.IsConnected) 
     131                if (asyncWait.AsyncWaitHandle.WaitOne()) 
    136132                    ThreadPool.QueueUserWorkItem(ProcessConnection, server); 
    137133            } 
     
    147143            NamedPipeServerStream server = (NamedPipeServerStream)result.AsyncState; 
    148144            server.WaitForConnection(); 
    149             if (server.IsConnected) 
    150                 server.EndWaitForConnection(result); 
     145            server.EndWaitForConnection(result); 
    151146        } 
    152147 
Note: See TracChangeset for help on using the changeset viewer.