##// END OF EJS Templates
fixed timeout handling in promises
cin -
r148:e6d4b41f0101 v2
parent child
Show More
@@ -172,8 +172,8 namespace Implab {
172 172
173 173 #region synchronization traits
174 174 protected void WaitResult(int timeout) {
175 if (!IsResolved)
176 GetResolveSignal().Wait(timeout);
175 if (!(IsResolved || GetResolveSignal().Wait(timeout)))
176 throw new TimeoutException();
177 177
178 178 switch (m_state) {
179 179 case SUCCEEDED_STATE:
General Comments 0
You need to be logged in to leave comments. Login now