mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-11 08:54:38 +01:00
SDLNet_TCP_Close() not only closes, but also release the resources. Therefore, we must not close the socket if another thread attempts to read it. For that purpose, move socket closing from server_stop() to server_destroy().