fixes of deprecates

This commit is contained in:
InsanusMokrassar committed 2021-05-26 22:33:08 +06:00
1 parent 9566d6f81f
commit 2020e48659
2 files changed
+2 -2

No files matched your search

@@ -10,7 +10,7 @@ import kotlinx.coroutines.flow.collect
import kotlinx.serialization.SerializationStrategy
private suspend fun DefaultWebSocketSession.checkReceivedAndCloseIfExists() {
if (incoming.poll() != null) {
if (incoming.tryReceive() != null) {
close()
throw CorrectCloseException
}