mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Fixed exception in sync.
This commit is contained in:
@@ -814,7 +814,7 @@ class SyncSocketSession {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
val decryptedPayload = channel.decrypt(data)
|
val decryptedPayload = channel.decrypt(data)
|
||||||
val errorCode = SyncErrorCode.entries.find { it.value == decryptedPayload.int } ?: SyncErrorCode.ConnectionClosed
|
val errorCode = decryptedPayload.int
|
||||||
Logger.e(TAG, "Received relayed error (errorCode = $errorCode) on connectionId $connectionId, closing")
|
Logger.e(TAG, "Received relayed error (errorCode = $errorCode) on connectionId $connectionId, closing")
|
||||||
channel.close()
|
channel.close()
|
||||||
_channels.remove(connectionId)
|
_channels.remove(connectionId)
|
||||||
@@ -825,7 +825,7 @@ class SyncSocketSession {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
val connectionId = data.long
|
val connectionId = data.long
|
||||||
val errorCode = SyncErrorCode.entries.find { it.value == data.int } ?: SyncErrorCode.ConnectionClosed
|
val errorCode = data.int
|
||||||
val channel = _channels[connectionId] ?: run {
|
val channel = _channels[connectionId] ?: run {
|
||||||
Logger.e(TAG, "Received error code $errorCode for non-existent channel with connectionId $connectionId")
|
Logger.e(TAG, "Received error code $errorCode for non-existent channel with connectionId $connectionId")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user