[X2Go-Commits] x2gobroker.git - statusflag (branch) updated: 0.0.2.2-28-g85abee9
X2Go dev team
git-admin at x2go.org
Wed Jun 5 01:11:53 CEST 2013
The branch, statusflag has been updated
via 85abee9af37eef9d270a1f315e601cbbbf05723a (commit)
from 766abbbb49123316bae13e1433cff03ea818c6d4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 85abee9af37eef9d270a1f315e601cbbbf05723a
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Wed Jun 5 01:11:08 2013 +0200
sleep for 2 secs, then manually set the session state to 'S'
-----------------------------------------------------------------------
Summary of changes:
x2gobroker/brokers/base_broker.py | 4 ++++
1 file changed, 4 insertions(+)
The diff of changes is:
diff --git a/x2gobroker/brokers/base_broker.py b/x2gobroker/brokers/base_broker.py
index f109073..d29714e 100644
--- a/x2gobroker/brokers/base_broker.py
+++ b/x2gobroker/brokers/base_broker.py
@@ -30,6 +30,7 @@ import copy
import uuid
import netaddr
import random
+import time
# X2Go Broker modules
import x2gobroker.config
@@ -983,6 +984,9 @@ class X2GoBroker(object):
else:
session_info = running_sessions[0]
x2gobroker.agent.suspend_session(username=username, session_name=session_info.split('|')[1], query_mode=agent_query_mode)
+ # this is the turn-around in x2gocleansessions, so waiting as along as the daemon that will suspend the session
+ time.sleep(2)
+ session_info = session_info.replace('|R|', '|S|')
server_name = session_info.split('|')[3]
# if we have an explicit IP address for server_name, let's use that instead...
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2gobroker.git" (HTTP(S) Session broker for X2Go).
More information about the x2go-commits
mailing list