浼樺寲AsyncIOThread
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user