9e60246a8c
Ensure all client threads are disconnected before we stop the server thread and thus make it available for deletion. We do this because shadow_client_context_free() accesses rdpShadowServer structure, which we have to keep alive as long as it is needed. Calling shadow_client_context_free() after shadow_server_stop() and shadow_server_free() were called may have caused an application crash.