mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 21:59:54 +01:00
Always inform new observers about current state
This commit is contained in:
@@ -63,8 +63,6 @@ abstract class RemovableDriveTaskImpl implements RemovableDriveTask {
|
|||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
observers.add(o);
|
observers.add(o);
|
||||||
state = this.state;
|
state = this.state;
|
||||||
}
|
|
||||||
if (state.isFinished()) {
|
|
||||||
eventExecutor.execute(() -> o.accept(state));
|
eventExecutor.execute(() -> o.accept(state));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user