浼樺寲AsyncIOThread

This commit is contained in:
Redkale
2023-01-17 18:22:12 +08:00
parent ec5b337460
commit 4d41b2afda

View File

@@ -219,13 +219,13 @@ public class AsyncIOThread extends WorkThread {
public synchronized void close() { public synchronized void close() {
if (!this.closed) { if (!this.closed) {
this.interrupt(); this.closed = true;
try { try {
this.selector.close(); this.selector.close();
} catch (Exception e) { } catch (Exception e) {
logger.log(Level.FINE, getName() + " selector close failed", e); logger.log(Level.FINE, getName() + " selector close failed", e);
} }
this.closed = true; this.interrupt();
} }
} }
} }