forked from I2P_Developers/i2p.i2p
UPnP: Don't rescan when shutting down
This commit is contained in:
@@ -139,6 +139,8 @@ class UPnPManager {
|
||||
public synchronized void rescan() {
|
||||
if (!_shouldBeRunning)
|
||||
return;
|
||||
if (_context.router().gracefulShutdownInProgress())
|
||||
return;
|
||||
long now = System.currentTimeMillis();
|
||||
if (_lastRescan + RESCAN_MIN_DELAY > now)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user