release 0.2.4
This commit is contained in:
1 parent
1f7e7f88fa
commit
18c878dfb5
14 files changed
+172
-41
No files matched your search
@@ -22,12 +22,14 @@ actual fun acceptTcpDevice(port: Int): Flow<InetTransportDevice> {
|
||||
}
|
||||
}
|
||||
while (true) {
|
||||
println("0 --- $port")
|
||||
val connectedSocket = suspendCancellableCoroutine { continuation ->
|
||||
continuation.invokeOnCancellation {
|
||||
socket.close()
|
||||
}
|
||||
socket.accept(continuation, ContinuationHandler())
|
||||
}
|
||||
println("1 ---")
|
||||
emit(asyncSocketToDevice(connectedSocket))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user