Display and control your Android device
Fix double adb tunnel closing
Romain Vimontd0ab8c0e7beb
diff --git a/app/src/server.c b/app/src/server.cindex 0de51c7e..a4090f00 100644--- a/app/src/server.c+++ b/app/src/server.c@@ -482,8 +482,10 @@ fail:}}- // Always leave this function with tunnel disabled- sc_adb_tunnel_close(tunnel, &server->intr, serial);+ if (tunnel->enabled) {+ // Always leave this function with tunnel disabled+ sc_adb_tunnel_close(tunnel, &server->intr, serial);+ }return false;}