Skip to content

Commit

Permalink
Log device disconnection
Browse files Browse the repository at this point in the history
If scrcpy closes due to socket disconnection, log a warning.
  • Loading branch information
rom1v committed Nov 9, 2019
1 parent e282100 commit 6996cbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/scrcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6996cbf

Please sign in to comment.