Cancel the timer thread when stopping the key manager.

This commit is contained in:
akwizgran
2012-10-24 19:16:26 +01:00
parent c0143611b8
commit 5628342c58

View File

@@ -196,6 +196,7 @@ class KeyManagerImpl extends TimerTask implements KeyManager, DatabaseListener {
public synchronized void stop() {
if(!running) return;
timer.cancel();
recogniser.removeSecrets();
removeAndEraseSecrets(outgoing);
removeAndEraseSecrets(incomingOld);