Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alabate committed Jun 8, 2019
1 parent 38e2fbb commit b8494d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rosbridge_server/src/rosbridge_server/websocket_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def prewrite_message(self, message, binary):
# Use a try block because the log decorator doesn't cooperate with @coroutine.
try:
with self._write_lock:
yield self.write_message(message, binary)
future_handle = self.write_message(message, binary)
yield future_handle
except WebSocketClosedError:
rospy.logwarn('WebSocketClosedError: Tried to write to a closed websocket')
raise
Expand Down

0 comments on commit b8494d2

Please sign in to comment.