diff options
Diffstat (limited to 'wcf/src/Apache/Qpid/Interop/CompletionWaiter.cpp')
| -rw-r--r-- | wcf/src/Apache/Qpid/Interop/CompletionWaiter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wcf/src/Apache/Qpid/Interop/CompletionWaiter.cpp b/wcf/src/Apache/Qpid/Interop/CompletionWaiter.cpp index 4f6746828d..e39ee1b1ae 100644 --- a/wcf/src/Apache/Qpid/Interop/CompletionWaiter.cpp +++ b/wcf/src/Apache/Qpid/Interop/CompletionWaiter.cpp @@ -53,11 +53,13 @@ CompletionWaiter::CompletionWaiter(AmqpSession^ parent, TimeSpan timeSpan, IntPt this->qpidFuture = future; this->asyncCallback = callback; this->state = state; + this->parent = parent; + this->thisLock = gcnew Object(); + // do this after the Completion Waiter is fully initialized, in case of + // very small timespan if (timeSpan != TimeSpan::MaxValue) { this->timer = gcnew Timer(timeoutCallback, this, timeSpan, TimeSpan::FromMilliseconds(-1)); } - this->parent = parent; - this->thisLock = gcnew Object(); } |
