synch fix

This commit is contained in:
zzz
2015-11-05 21:34:47 +00:00
parent c1d77dfe5c
commit d5e2defb5f

View File

@ -68,7 +68,7 @@ public class InternalSocket extends Socket {
} }
@Override @Override
public void close() { public synchronized void close() {
try { try {
if (_is != null) { if (_is != null) {
_is.close(); _is.close();
@ -84,7 +84,7 @@ public class InternalSocket extends Socket {
} }
@Override @Override
public boolean isClosed() { public synchronized boolean isClosed() {
return _is == null || _os == null; return _is == null || _os == null;
} }