diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-18 18:29:41 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-18 18:32:06 -0800 |
| commit | 8049d822b3d8ea8bd11793369004c638d833964e (patch) | |
| tree | d4ebfef8b3b5d80c8693f71ac6cea3ff91dc12ba /src/core/msgqueue.c | |
| parent | 1e4cf4e7c872a705a41bca66dd377ca2dbbe0d69 (diff) | |
| download | nng-8049d822b3d8ea8bd11793369004c638d833964e.tar.gz nng-8049d822b3d8ea8bd11793369004c638d833964e.tar.bz2 nng-8049d822b3d8ea8bd11793369004c638d833964e.zip | |
fixes #12 SURVEY hang in Travis
Diffstat (limited to 'src/core/msgqueue.c')
| -rw-r--r-- | src/core/msgqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/msgqueue.c b/src/core/msgqueue.c index 344798d7..5f4bd333 100644 --- a/src/core/msgqueue.c +++ b/src/core/msgqueue.c @@ -466,7 +466,7 @@ nni_msgq_drain(nni_msgq *mq, nni_time expire) nni_cv_wake(&mq->mq_writeable); nni_cv_wake(&mq->mq_readable); while (mq->mq_len > 0) { - if (nni_cv_until(&mq->mq_drained, expire) == NNG_ETIMEDOUT) { + if (nni_cv_until(&mq->mq_drained, expire) != 0) { break; } } |
