[X2Go-Commits] python-x2go.git - twofactorauth (branch) updated: 0.0.44.2-6-g25ae8bd
X2Go dev team
git-admin at x2go.org
Sat Sep 14 15:56:39 CEST 2013
The branch, twofactorauth has been updated
via 25ae8bdeb523ff6266fdcdc47832a3afca55f88d (commit)
from 8cc770592e6e75ec1e54f5472ddcb7ca19306eb0 (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 -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
x2go/session.py | 10 ++++++++++
1 file changed, 10 insertions(+)
The diff of changes is:
diff --git a/x2go/session.py b/x2go/session.py
index 4a66e02..376ff81 100644
--- a/x2go/session.py
+++ b/x2go/session.py
@@ -122,6 +122,7 @@ class X2goSession(object):
self.server = server
self._current_status = {
+ 'timestamp': time.time(),
'server': self.server,
'virgin': self.virgin,
'connected': self.connected,
@@ -615,6 +616,14 @@ class X2goSession(object):
STILL UNDOCUMENTED
"""
+ if self._last_status is not None:
+ _status_update_timedelta = time.time() - self._last_status['timestamp']
+
+ # skip this session status update if not longer than a second ago...
+ if _status_update_timedelta < 1:
+ self.logger('status update interval too short (%s), skipping status about this time...' % _status_update_timedelta, loglevel=log.loglevel_DEBUG)
+ return
+
e = None
self._last_status = copy.deepcopy(self._current_status)
if session_list is None:
@@ -644,6 +653,7 @@ class X2goSession(object):
self.terminated = True
self._current_status = {
+ 'timestamp': time.time(),
'server': self.server,
'virgin': self.virgin,
'connected': self.connected,
hooks/post-receive
--
python-x2go.git (Python X2Go Client API)
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 "python-x2go.git" (Python X2Go Client API).
More information about the x2go-commits
mailing list