server/proxy: Fix race-condition
authorkubistika <kmizrachi18@gmail.com>
Thu, 30 May 2019 08:22:50 +0000 (11:22 +0300)
committerakallabeth <akallabeth@users.noreply.github.com>
Wed, 26 Jun 2019 12:25:07 +0000 (14:25 +0200)
commitf795fc2670c047d22d2f67278eeb0cdab0f020f3
tree53bf39e0ee8ebab62cc2524749aa1d9afc1719f1
parent255fab201a6ccbe6e99befad1abe964b37f8193f
server/proxy: Fix race-condition

The client's `ClientStop` callback wasn't set, therefore calling
freerdp_client_stop wasn't really blocking until it has stopped, and a
race condition occured. Fixed by registring to `ClientStop` callback and
waiting for the client thread to finish.
server/proxy/pf_client.c