[sagenb] 134/179: fix timeout issues in worksheet

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:20 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit 01e2d184ad431fbb0458e8960bff84143bdbe4a7
Author: P Purkayastha <ppurka at gmail.com>
Date:   Sat Jun 22 12:24:17 2013 +0800

    fix timeout issues in worksheet
---
 sagenb/notebook/worksheet.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sagenb/notebook/worksheet.py b/sagenb/notebook/worksheet.py
index 0cd0300..b03d4f2 100644
--- a/sagenb/notebook/worksheet.py
+++ b/sagenb/notebook/worksheet.py
@@ -3405,7 +3405,8 @@ except (KeyError, IOError):
         I.e., an ignored worksheet process (since the user closed their
         browser) is also considered idle, even if code is running.
         """
-        if self.time_idle() > timeout:
+        # Quit only if timeout is greater than zero
+        if timeout > 0 and self.time_idle() > timeout:
             # worksheet name may contain unicode, so we use %r, which prints
             # the \xXX form for unicode characters
             print "Quitting ignored worksheet process for %r." % self.name()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list