Skip to content

Commit

Permalink
add back the error handling code
Browse files Browse the repository at this point in the history
  • Loading branch information
tshirtman committed Sep 22, 2019
1 parent 87e3df8 commit badd856
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion oscpy/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ def _listen(self):
continue

for sender_socket in read:
data, sender = sender_socket.recvfrom(UDP_MAX_SIZE)
try:
data, sender = sender_socket.recvfrom(UDP_MAX_SIZE)
except (OSError, ConnectionResetError):
continue

for address, tags, values, offset in read_packet(
data, drop_late=drop_late, encoding=self.encoding,
Expand Down

0 comments on commit badd856

Please sign in to comment.