Skip to content

Commit

Permalink
Fixed #219
Browse files Browse the repository at this point in the history
[FIX] Fixed race condition causing intermittent crashes
  • Loading branch information
tayler6000 committed Jan 17, 2024
1 parent e6f7df3 commit 9652a28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyVoIP/networking/sock.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,11 @@ def _handle_incoming_message(
if conn_id:
self.sip.handle_new_connection(self.conns[conn_id])

def run(self) -> None:
def start(self) -> None:
self.bind((self.bind_ip, self.bind_port))
super().start()

def run(self) -> None:
if self.mode == TransportMode.UDP:
self._udp_run()
else:
Expand Down

0 comments on commit 9652a28

Please sign in to comment.