From 6996cbf5d38b2f5bfdc061b421ea204e3aafce67 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sat, 9 Nov 2019 21:13:20 +0100 Subject: [PATCH] Log device disconnection If scrcpy closes due to socket disconnection, log a warning. --- app/src/scrcpy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index 16f1b4f7..64165ac5 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -218,6 +218,7 @@ event_loop(bool display, bool control) { case EVENT_RESULT_STOPPED_BY_USER: return true; case EVENT_RESULT_STOPPED_BY_EOS: + LOGW("Device disconnected"); return false; case EVENT_RESULT_CONTINUE: break; -- GitLab