UPnP: Don't rescan when shutting down

This commit is contained in:
zzz
2015-03-29 14:59:11 +00:00
parent 9a8fa246a9
commit 891408191e

View File

@@ -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;