bool res = clientSocket.SendAsync (e);
if (res) {
if (!m.WaitOne (1500))
- throw new TimeoutException ();
+ Assert.Fail ("Timeout #1");
}
if (!mainEvent.WaitOne (1500))
- throw new TimeoutException ();
+ Assert.Fail ("Timeout #2");
if (error != null)
throw error;
res = clientSocket.SendAsync (e);
if (res) {
if (!m.WaitOne (1500))
- throw new TimeoutException ();
+ Assert.Fail ("Timeout #3");
}
if (!mainEvent.WaitOne (1500))
- throw new TimeoutException ();
+ Assert.Fail ("Timeout #4");
if (error != null)
throw error;
}
}
-}
\ No newline at end of file
+}