mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-05 05:27:30 +08:00
[F] Thread close
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user