mirror of https://github.com/zlatinb/muwire
fix shutdown while I2P router is initializing
parent
b8efa9b29f
commit
77833e7f76
|
@ -62,10 +62,8 @@ class I2PConnector {
|
|||
}
|
||||
}
|
||||
|
||||
synchronized void shutdown() {
|
||||
if (socketManager == null)
|
||||
return
|
||||
socketManager.destroySocketManager()
|
||||
void shutdown() {
|
||||
socketManager?.destroySocketManager()
|
||||
socketManager = null
|
||||
}
|
||||
|
||||
|
|
|
@ -300,8 +300,8 @@ class H2HostCache extends HostCache {
|
|||
}
|
||||
@Override
|
||||
public synchronized void stop() {
|
||||
timer.cancel()
|
||||
sql.close()
|
||||
try {timer.cancel()} catch (Exception ignore) {}
|
||||
sql?.close()
|
||||
}
|
||||
@Override
|
||||
public synchronized void load() {
|
||||
|
|
Loading…
Reference in New Issue