Commit 69202fa7 authored by Mihai Moldovan's avatar Mihai Moldovan
Browse files

src/x2goclient-network-ssh.c: check thread pointer before joining check thread.

parent 108c6b48
......@@ -261,8 +261,10 @@ static void x2goclient_network_ssh_finalize (GObject * const object) {
g_mutex_unlock (&(self->check_thread_mutex));
/* Let last event run out and thread terminate. */
(void) g_thread_join (self->check_thread);
self->check_thread = NULL;
if (self->check_thread) {
(void) g_thread_join (self->check_thread);
self->check_thread = NULL;
* Context should be gone by now, implicitly through the thread's main
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment