Skip to content

Commit 9f7b2a8

Browse files
minor fix of copy/paste error
1 parent e81160b commit 9f7b2a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common/events.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ EventSubscriber::~EventSubscriber()
250250
m_event_service.close_service();
251251
}
252252
out:
253-
if (m_socket == NULL) {
254-
zmq_close(sock);
253+
if (m_socket != NULL) {
254+
zmq_close(m_socket);
255255
}
256256
zmq_ctx_term(m_zmq_ctx);
257257
}

0 commit comments

Comments
 (0)