forked from I2P_Developers/i2p.i2p
synch fix
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user