Skip to content

Commit 338cb36

Browse files
committed
Allow new connect attempt
1 parent df2a2a4 commit 338cb36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/app/src/main/java/betaflight/configurator/plugin/SocketPlugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public void connect(final PluginCall call) {
9595
} catch (Exception e) {
9696
state.set(ConnectionState.ERROR);
9797
closeResourcesInternal();
98+
state.set(ConnectionState.DISCONNECTED); // allow a new connect() attempt
9899
call.reject("Connection failed: " + e.getMessage());
99100
Log.e(TAG, "Connection failed", e);
100101
} finally {

0 commit comments

Comments
 (0)