Skip to content

Commit

Permalink
Do not raise socket exception during shutdown (#1720)
Browse files Browse the repository at this point in the history
  • Loading branch information
yli-cpr authored and dirk-thomas committed Aug 4, 2020
1 parent 9b89034 commit 5153a75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/rospy/src/rospy/impl/tcpros_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ def run(self):
(errno, msg) = e.args
if errno == 4: #interrupted system call
continue
raise
if not self.is_shutdown:
raise
if self.is_shutdown:
break
try:
Expand Down

0 comments on commit 5153a75

Please sign in to comment.