From 73d559e364e77f2d9b6c94f4531f4072d05c0c1e Mon Sep 17 00:00:00 2001 From: Tayler Porter Date: Sun, 10 Apr 2022 22:49:16 -0500 Subject: [PATCH] [FIX] Unfixed infinant loop not stopping on shutdown in SIPClient.genTag(). This broke deregistering on stop. --- pyVoIP/SIP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyVoIP/SIP.py b/pyVoIP/SIP.py index aeac0d2..002b6c0 100644 --- a/pyVoIP/SIP.py +++ b/pyVoIP/SIP.py @@ -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)