mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-09-13 04:52:28 +00:00
Crashfix on stopping StateSync #2302
This commit is contained in:
parent
f4f1470153
commit
40c195d4a0
1 changed files with 5 additions and 1 deletions
|
@ -803,8 +803,12 @@ class SyncService(
|
||||||
_relaySession = null
|
_relaySession = null
|
||||||
_serverSocket?.close()
|
_serverSocket?.close()
|
||||||
_serverSocket = null
|
_serverSocket = null
|
||||||
|
|
||||||
|
synchronized(_sessions) {
|
||||||
|
_sessions.values.toList()
|
||||||
|
}.forEach { it.close() }
|
||||||
|
|
||||||
synchronized(_sessions) {
|
synchronized(_sessions) {
|
||||||
_sessions.values.forEach { it.close() }
|
|
||||||
_sessions.clear()
|
_sessions.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue