Changeset 2238 for trunk/eraser/Eraser/Program.cs
- Timestamp:
- 8/4/2010 10:39:59 AM (22 months ago)
- File:
-
- 1 edited
-
trunk/eraser/Eraser/Program.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser/Program.cs
r2236 r2238 284 284 eraserInstance.WaitForInputIdle(); 285 285 286 result.Run(); 287 if (!result.IsConnected) 288 throw new IOException(S._("Eraser cannot connect to the running " + 289 "instance for erasures.")); 286 //Wait for the server to be initialised. 287 for (int i = 0; !result.IsConnected; ++i) 288 { 289 Thread.Sleep(100); 290 result.Run(); 291 292 //After 10s, we should probably give up. 293 if (i > 100) 294 throw new IOException(S._("Eraser cannot connect to the running " + 295 "instance for erasures.")); 296 } 290 297 } 291 298
Note: See TracChangeset
for help on using the changeset viewer.
