Skip to content

Commit

Permalink
Merge pull request #220 from tayler6000/bugfix/Issue-219
Browse files Browse the repository at this point in the history
Fixed Race Condition
  • Loading branch information
tayler6000 authored Jan 17, 2024
2 parents e6f7df3 + 9652a28 commit 3660456
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 3660456

Please sign in to comment.