Prevent socket leak on error
Prevent socket leak on error

Signed-off-by: Yu-Chen Lin <4520184cbb4d42154975f8b8b0138505e78cc728@gmail.com>
Signed-off-by: Romain Vimont <a1e17a20e93e5da710685444df3ad038ac66e2c9@rom1v.com>

Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy