# HG changeset patch # User cin # Date 1429072220 -10800 # Node ID e6d4b41f0101bb778d4e6eabb0b0d3af6bd90337 # Parent 25cdef49102f39461e4e4609898226f2580cf535 fixed timeout handling in promises diff -r 25cdef49102f -r e6d4b41f0101 Implab/AbstractEvent.cs --- a/Implab/AbstractEvent.cs Tue Mar 17 08:25:35 2015 +0300 +++ b/Implab/AbstractEvent.cs Wed Apr 15 07:30:20 2015 +0300 @@ -172,8 +172,8 @@ #region synchronization traits protected void WaitResult(int timeout) { - if (!IsResolved) - GetResolveSignal().Wait(timeout); + if (!(IsResolved || GetResolveSignal().Wait(timeout))) + throw new TimeoutException(); switch (m_state) { case SUCCEEDED_STATE: