Skip to content

Display and control your Android device

Add missing call to net_cleanup()

Romain Vimontf30bdeb1b996
diff --git a/app/src/main.c b/app/src/main.c
index 3ab03243..d2dbef69 100644
--- a/app/src/main.c
+++ b/app/src/main.c
@@ -93,6 +93,8 @@ main_scrcpy(int argc, char *argv[]) {
ret = scrcpy(&args.opts);
#endif
+ net_cleanup();
+
end:
if (args.pause_on_exit == SC_PAUSE_ON_EXIT_TRUE ||
(args.pause_on_exit == SC_PAUSE_ON_EXIT_IF_ERROR &&