summaryrefslogtreecommitdiff
path: root/src/zmq.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:01:22 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:01:22 +0900
commitb8ba042912233045b6ca74f732bcc7265dfeb5b0 (patch)
treed29161688ecb4abc8a71c3ad3036c56a81e0b4a3 /src/zmq.cpp
parent061d0df60624bdcef571188fd7c7ecdcadf520eb (diff)
Monitor object added
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/zmq.cpp')
-rw-r--r--src/zmq.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zmq.cpp b/src/zmq.cpp
index 84dcdd1..6417d8e 100644
--- a/src/zmq.cpp
+++ b/src/zmq.cpp
@@ -92,7 +92,8 @@ const char *zmq_strerror (int errnum_)
void *zmq_init (int io_threads_)
{
- if (io_threads_ < 0) {
+ // We need at least one I/O thread to run the monitor object in.
+ if (io_threads_ < 1) {
errno = EINVAL;
return NULL;
}