mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-19 14:34:19 +01:00
Log device disconnection
If scrcpy closes due to socket disconnection, log a warning.
This commit is contained in:
@@ -218,6 +218,7 @@ event_loop(bool display, bool control) {
|
|||||||
case EVENT_RESULT_STOPPED_BY_USER:
|
case EVENT_RESULT_STOPPED_BY_USER:
|
||||||
return true;
|
return true;
|
||||||
case EVENT_RESULT_STOPPED_BY_EOS:
|
case EVENT_RESULT_STOPPED_BY_EOS:
|
||||||
|
LOGW("Device disconnected");
|
||||||
return false;
|
return false;
|
||||||
case EVENT_RESULT_CONTINUE:
|
case EVENT_RESULT_CONTINUE:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user