Permalink
Browse files

hypnotoad agent should close sockets upon exit

(even though it doesn't have any exit capability at the moment)
  • Loading branch information...
1 parent 232c20d commit 7681966fc9edc6bdd993a980c332d01c938efcd9 @yrashk committed Apr 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 c_src/main.c
View
@@ -33,8 +33,9 @@ int main(int argc, char **argv) {
zmq_msg_close (&request);
}
-
+ zmq_close(pub);
+ zmq_close(sub);
zmq_term(zmq);
DecrementGCLocks();
-}
+}

0 comments on commit 7681966

Please sign in to comment.