Skip to content

Commit

Permalink
refactor: Simplify socket close
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Jul 28, 2023
1 parent 52ca75d commit 1ee5dca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nexus/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ async def closeSockets(self):
for socket in sockets:
if not socket:
continue
socket.setsockopt(zmq.LINGER, 0)
socket.close()
socket.close(linger=1)

self.logger.info("Terminating context...")
self.context.term()
Expand Down

0 comments on commit 1ee5dca

Please sign in to comment.