[F] Thread close

pull/109/head
Azalea 2025-01-15 19:27:34 -05:00
parent 3114a9b8c6
commit 2d35d41779
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ class MaimaiFutari(private val port: Int = 20101) {
try {
while (true) {
val input = (reader.readLine() ?: continue).trim('\uFEFF')
val input = (reader.readLine() ?: if (Thread.interrupted()) break else continue).trim('\uFEFF')
if (input != "1,3") log.info("${socket.remoteSocketAddress} (${handler?.clientKey}) <<< $input")
val message = Msg.fromString(input)