[X2Go-Commits] [x2gokdrive] 01/01: reinit client version on new connection and awaka sending thread when client version recieved.
git-admin at x2go.org
git-admin at x2go.org
Tue Aug 25 17:11:43 CEST 2020
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gokdrive.
commit 90e1cdf69cf1635a79286fce160495b2fae94f14
Author: Oleksandr Shneyder <o.shneyder at phoca-gmbh.de>
Date: Tue Aug 25 10:11:34 2020 -0500
reinit client version on new connection and awaka sending thread when client version recieved.
---
debian/changelog | 1 +
x2gokdriveremote.c | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 4a8877b..3a442cf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ x2gokdrive (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
selections.
- add xcb-xfixes to deps.
- send a recive feature versions.
+ - reinit client version on new connection and awaka sending thread when client version recieved.
[ Mihai Moldovan ]
* Initial release:
diff --git a/x2gokdriveremote.c b/x2gokdriveremote.c
index e71f2a8..210de85 100644
--- a/x2gokdriveremote.c
+++ b/x2gokdriveremote.c
@@ -1482,6 +1482,8 @@ void *send_frame_thread (void *threadid)
#endif /* XORG_VERSION_CURRENT */
remoteVars.client_connected=TRUE;
remoteVars.server_version_sent=FALSE;
+ remoteVars.client_version=0;
+ remoteVars.client_os=0;
if(remoteVars.checkConnectionTimer)
{
TimerFree(remoteVars.checkConnectionTimer);
@@ -1519,6 +1521,7 @@ void *send_frame_thread (void *threadid)
}
+
if(!remoteVars.first_sendqueue_element && !remoteVars.firstCursor && !remoteVars.selstruct.firstOutputChunk)
{
/* sleep if frame queue is empty */
@@ -2200,6 +2203,7 @@ clientReadNotify(int fd, int ready, void *data)
}
else
remoteVars.client_os=os;
+ pthread_cond_signal(&remoteVars.have_sendqueue_cond);
break;
}
default:
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gokdrive.git
More information about the x2go-commits
mailing list