aboutsummaryrefslogtreecommitdiff
path: root/src/im-zmq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/im-zmq.c')
-rw-r--r--src/im-zmq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/im-zmq.c b/src/im-zmq.c
index af70e7ae..ece80662 100644
--- a/src/im-zmq.c
+++ b/src/im-zmq.c
@@ -158,6 +158,9 @@ void *im_zmq_fetch(struct im_zmq *z, size_t *pdata_size)
return NULL;
}
+ /* Reply received. OK to send request again */
+ z->request_sent = 0;
+
data_copy = malloc(msg_size);
if ( data_copy == NULL ) return NULL;
memcpy(data_copy, zmq_msg_data(&z->msg), msg_size);