diff options
author | Thomas White <taw@physics.org> | 2022-07-06 22:46:01 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-07-06 22:46:01 +0200 |
commit | 3f6af99c3b9efe705b8a6f10a729e87be539fc6f (patch) | |
tree | 660adce524a6a6187960a928c7d18059d2dd6e61 /src/im-zmq.c | |
parent | 5e06310da1d04436a27354f3d305a520ce993c1d (diff) |
indexamajig: Reset z->request_sent after receiving ZMQ reply
Diffstat (limited to 'src/im-zmq.c')
-rw-r--r-- | src/im-zmq.c | 3 |
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); |