Skip to content

Commit

Permalink
Ignore normal packets unless connected.
Browse files Browse the repository at this point in the history
  • Loading branch information
Renelvon committed Jun 11, 2015
1 parent 843ce4c commit c090dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txrudp/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def receive_packet(self, rudp_packet):
elif rudp_packet.syn:
if not self.connected:
self._process_syn_packet(rudp_packet)
else:
elif self.connected:
self._process_casual_packet(rudp_packet)

def shutdown(self):
Expand Down

0 comments on commit c090dfc

Please sign in to comment.