SIGN IN SIGN UP

Run the server from a dedicated thread

Define server callbacks, start the server asynchronously and listen to
connection events to initialize scrcpy properly.

It will help to simplify the server code, and allows to run the UI event
loop while the server is connecting. In particular, this will allow to
receive SIGINT/Ctrl+C events during connection to interrupt immediately.
R
Romain Vimont committed
04267085441d6fcd05eff7df0118708f7622e237
Parent: 5b9c886