提交 07d3c8b3 authored 作者: Andrei Tokar's avatar Andrei Tokar

just prevent non-critical NPE on close

上级 00e69c3d
......@@ -538,6 +538,9 @@ public class TcpServerThread implements Runnable {
}
private int getState(int oldModificationId) {
if (session == null) {
return SessionRemote.STATUS_CLOSED;
}
if (session.getModificationId() == oldModificationId) {
return SessionRemote.STATUS_OK;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论