Skip to content

Commit

Permalink
fix for #110
Browse files Browse the repository at this point in the history
stop authentication retransmissions when a terminal 401 is recieved
  • Loading branch information
Terry Kerr committed Apr 23, 2018
1 parent e652777 commit 37c8f77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiosip/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def _error(self, error):
self.dialog.end_transaction(self)

def _result(self, msg):
if self.authentification:
self.authentification.cancel()
self.authentification = None
self._future.set_result(msg)
self.dialog.end_transaction(self)

Expand Down

0 comments on commit 37c8f77

Please sign in to comment.