X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6d87184b8fa7ebe005e5ba19fb311b9e505a72f8..c8eff39152f3dd35abcb7b8d31cbea34e20e8457:/e2reactor.py diff --git a/e2reactor.py b/e2reactor.py index 4f069f91..cca2f358 100644 --- a/e2reactor.py +++ b/e2reactor.py @@ -11,7 +11,7 @@ Maintainer: U{Felix Domke} import select, errno, sys # Twisted imports -from twisted.python import log, threadable, failure +from twisted.python import log, failure from twisted.internet import main, posixbase, error #from twisted.internet.pollreactor import PollReactor, poller @@ -36,7 +36,10 @@ class E2SharedPoll: del self.dict[fd] def poll(self, timeout = None): - r = self.eApp.poll(timeout, self.dict) + try: + r = self.eApp.poll(timeout, self.dict) + except KeyboardInterrupt: + return None return r poller = E2SharedPoll()