def checkCommandPipe(self):
    '\n        Get and perform commands waiting in the pipe.\n        Stop when no more commands or if more than 50\n        milliseconds have passed.\n        '
    try:
        starttime = time.clock()
        while self.__cmndpipe.poll(0.002):
            cmnd = self.__cmndpipe.recv()
            self.processCommand(cmnd)
            if ((time.clock() - starttime) > 0.05):
                break
    except EOFError:
        self.exitViewer()
    except Exception:
        (exctype, excval) = sys.exc_info()[:2]
        try:
            if excval:
                self.__rspdpipe.send(('**ERROR %s: %s' % (str(exctype), str(excval))))
            else:
                self.__rspdpipe.send(('**ERROR %s' % str(exctype)))
        except Exception:
            pass
Get and perform commands waiting in the pipe.
Stop when no more commands or if more than 50
milliseconds have passed.
def checkCommandPipe(self):
    '\n        Get and perform commands waiting in the pipe.\n        Stop when no more commands or if more than 50\n        milliseconds have passed.\n        '
    try:
        starttime = time.clock()
        while self.__cmndpipe.poll(0.002):
            cmnd = self.__cmndpipe.recv()
            self.processCommand(cmnd)
            if ((time.clock() - starttime) > 0.05):
                break
    except EOFError:
        self.exitViewer()
    except Exception:
        (exctype, excval) = sys.exc_info()[:2]
        try:
            if excval:
                self.__rspdpipe.send(('**ERROR %s: %s' % (str(exctype), str(excval))))
            else:
                self.__rspdpipe.send(('**ERROR %s' % str(exctype)))
        except Exception:
            pass