summaryrefslogtreecommitdiff
path: root/src/zmq.cpp
diff options
context:
space:
mode:
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;
}