scrcpy/server
Romain Vimont 5cf86ef7ff Move finally-block to fix deadlock on stop
DesktopConnection implements Closeable, so it is implicitly closed after
its try-with-resources block. Closing the DesktopConnection shutdowns
the sockets, so it is necessary in particular to wake up blocking read()
calls from the controller.

But the controller thread was joined before the DesktopConnection was
closed, causing a deadlock. To fix the problem, join the controller
thread only after the DesktopConnection is closed.

Refs 400a1c69b1
2023-02-19 15:59:05 +01:00
..
scripts Use "/usr/bin/env bash" for build-wrapper.sh 2020-09-15 13:44:02 +02:00
src Move finally-block to fix deadlock on stop 2023-02-19 15:59:05 +01:00
.gitignore Convert server to an Android project 2018-01-30 12:01:36 +01:00
build.gradle Bump version to 1.25 2022-12-22 12:33:29 +01:00
build_without_gradle.sh Support Java lambdas in build_without_gradle.sh 2023-01-27 22:08:25 +01:00
meson.build Remove deprecated meson.source_root() 2022-08-28 15:16:31 +02:00
proguard-rules.pro Convert server to an Android project 2018-01-30 12:01:36 +01:00