Notify callback of state changes while holding lock.

This commit is contained in:
akwizgran
2020-01-20 15:00:16 +00:00
parent 2689e5f361
commit 9bfbb4d02d
5 changed files with 20 additions and 22 deletions

View File

@@ -84,7 +84,6 @@ class AndroidLanTcpPlugin extends LanTcpPlugin implements EventListener {
public void start() {
if (used.getAndSet(true)) throw new IllegalStateException();
state.setStarted();
callback.pluginStateChanged(getState());
updateConnectionStatus();
}