Skip to content

Commit 30c6b30

Browse files
committed
Don't resubscribe when expire is given
1 parent 5242dcb commit 30c6b30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opensips/event/asyncevent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ async def resubscribe(self):
8686
except OpenSIPSMIException as e:
8787
return
8888
await asyncio.sleep(self.expire - 60)
89+
if not self.reregister:
90+
break
8991
except asyncio.CancelledError:
9092
pass
9193

0 commit comments

Comments
 (0)