Notify callback of state changes while holding lock.

This commit is contained in:
akwizgran
2020-01-20 15:00:16 +00:00
parent c08bdf96cd
commit 4130662e1f
5 changed files with 20 additions and 22 deletions

View File

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