浼樺寲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() {
if (!this.closed) {
this.interrupt();
this.closed = true;
try {
this.selector.close();
} catch (Exception e) {
logger.log(Level.FINE, getName() + " selector close failed", e);
}
this.closed = true;
this.interrupt();
}
}
}