Skip to content

Commit

Permalink
[FIX] Unfixed infinant loop not stopping on shutdown in SIPClient.gen…
Browse files Browse the repository at this point in the history
…Tag(). This broke deregistering on stop.
  • Loading branch information
tayler6000 committed Apr 11, 2022
1 parent da0499d commit 73d559e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyVoIP/SIP.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def genCallID(self):
return hashlib.sha256(str(self.callID.next()).encode('utf8')).hexdigest()[0:32]+"@"+self.myIP+":"+str(self.myPort)

def genTag(self):
while self.NSD:
while True: # Keep as True instead of NSD so it can generate a tag on deregister.
tag = hashlib.md5(str(random.randint(1, 4294967296)).encode('utf8')).hexdigest()[0:8]
if tag not in self.tags:
self.tags.append(tag)
Expand Down

0 comments on commit 73d559e

Please sign in to comment.