Update 'trashtalker.py'

This commit is contained in:
Maff 2019-04-29 13:31:00 +00:00
parent f88bff4c93
commit 5d3209ce0c
1 changed files with 9 additions and 5 deletions

View File

@ -131,11 +131,15 @@ def PjDeinit():
global sipport
global lib
lib.hangup_all()
acct.delete()
lib.destroy()
acct=None
transport=None
lib=None
try:
acct.delete()
lib.destroy()
acct=None
transport=None
lib=None
except AttributeError:
elog(1, "deinit", "AttributeError when clearing down pjsip, this is likely fine")
pass