mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
arq cleanup after sending close frames
This commit is contained in:
parent
d865edcfe7
commit
d365255a95
1 changed files with 8 additions and 2 deletions
|
@ -1407,9 +1407,13 @@ class DATA:
|
||||||
|
|
||||||
self.IS_ARQ_SESSION_MASTER = False
|
self.IS_ARQ_SESSION_MASTER = False
|
||||||
static.ARQ_SESSION = False
|
static.ARQ_SESSION = False
|
||||||
|
|
||||||
|
# we need to send disconnect frame before doing arq cleanup
|
||||||
|
# we would loose our session id then
|
||||||
|
self.send_disconnect_frame()
|
||||||
self.arq_cleanup()
|
self.arq_cleanup()
|
||||||
|
|
||||||
self.send_disconnect_frame()
|
|
||||||
|
|
||||||
def received_session_close(self, data_in: bytes):
|
def received_session_close(self, data_in: bytes):
|
||||||
"""
|
"""
|
||||||
|
@ -1649,11 +1653,13 @@ class DATA:
|
||||||
+ "]"
|
+ "]"
|
||||||
)
|
)
|
||||||
self.datachannel_timeout = True
|
self.datachannel_timeout = True
|
||||||
self.arq_cleanup()
|
|
||||||
|
|
||||||
# Attempt to cleanup the far-side, if it received the
|
# Attempt to cleanup the far-side, if it received the
|
||||||
# open_session frame and can still hear us.
|
# open_session frame and can still hear us.
|
||||||
self.close_session()
|
self.close_session()
|
||||||
|
|
||||||
|
self.arq_cleanup()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Shouldn't get here..
|
# Shouldn't get here..
|
||||||
|
|
Loading…
Reference in a new issue