x11: reorder xf_post_disconnect
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Tue, 14 Jul 2015 13:28:55 +0000 (15:28 +0200)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Tue, 14 Jul 2015 13:28:55 +0000 (15:28 +0200)
commitf589d5d6e0bb9181ebb7803ba31eb153531570bc
treedf6e57a23f9ce5fd246c0f0fd36846841e3ffb2d
parente2b4bf699e4a6899ed89679ff748cfdf8c230c5a
x11: reorder xf_post_disconnect

Channels like EGFX need resources like the main window in order to
work correctly. Before the window, GDI,.. is freed it needs to be
ensured that all channels are stopped properly to prevent them to access
already freed resources. Disconnecting the channels first fixed a
possible race condition/SEGFAULT that could occur with remote initiated
disconnects.
client/X11/xf_client.c