diff --git a/src/net/sf/briar/plugins/file/PollingRemovableDriveMonitor.java b/src/net/sf/briar/plugins/file/PollingRemovableDriveMonitor.java index 5d979f3334e242f4ac78ab57d1e6b7c6e814fa62..df0df7e2c5bce4778298d963d8e00e436d27db65 100644 --- a/src/net/sf/briar/plugins/file/PollingRemovableDriveMonitor.java +++ b/src/net/sf/briar/plugins/file/PollingRemovableDriveMonitor.java @@ -31,22 +31,13 @@ class PollingRemovableDriveMonitor implements RemovableDriveMonitor, Runnable { } public void start(Callback callback) throws IOException { - synchronized(this) { - assert !running; - assert this.callback == null; - running = true; - this.callback = callback; - } + this.callback = callback; + running = true; pluginExecutor.execute(this); } public void stop() throws IOException { - synchronized(this) { - assert running; - assert callback != null; - running = false; - callback = null; - } + running = false; synchronized(pollingLock) { pollingLock.notifyAll(); }