diff hgext/inotify/linuxserver.py @ 10494:08064db9f005 stable

inotify/inserve: implement --timeout-idle option (issue885) hg inserve was ignoring and miscomputing the --timeout-idle option (seconds vs. minutes). Thanks to Jesse Glick for the bugreport and the initial patch.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 17 Feb 2010 20:44:49 +0100
parents 5ddde896a19d
children 34cc8b84407f
line wrap: on
line diff
--- a/hgext/inotify/linuxserver.py	Wed Feb 17 20:30:57 2010 +0100
+++ b/hgext/inotify/linuxserver.py	Wed Feb 17 20:44:49 2010 +0100
@@ -397,7 +397,7 @@
         self.register(timeout=timeout)
 
     def handle_timeout(self):
-        pass
+        raise server.TimeoutException
 
     def handle_pollevents(self, events):
         for e in events: