[X2Go-Commits] [libx2goclient] 38/44: src/x2goclient-network-ssh.c: check thread pointer before joining check thread.
git-admin at x2go.org
git-admin at x2go.org
Fri Sep 18 01:55:40 CEST 2020
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository libx2goclient.
commit 69202fa73ab06742c75aaa424bcfb3eb8e6888e3
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Sep 17 11:17:16 2020 +0200
src/x2goclient-network-ssh.c: check thread pointer before joining check thread.
---
src/x2goclient-network-ssh.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/x2goclient-network-ssh.c b/src/x2goclient-network-ssh.c
index 6b8b149..1ddc299 100644
--- a/src/x2goclient-network-ssh.c
+++ b/src/x2goclient-network-ssh.c
@@ -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
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git
More information about the x2go-commits
mailing list