mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Crashfix on stopping StateSync #2302
This commit is contained in:
@@ -803,8 +803,12 @@ class SyncService(
|
||||
_relaySession = null
|
||||
_serverSocket?.close()
|
||||
_serverSocket = null
|
||||
|
||||
synchronized(_sessions) {
|
||||
_sessions.values.toList()
|
||||
}.forEach { it.close() }
|
||||
|
||||
synchronized(_sessions) {
|
||||
_sessions.values.forEach { it.close() }
|
||||
_sessions.clear()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user