def run(self):
        '''
        main loop that fires the event every second
        '''
        context = zmq.Context()
        # the socket for outgoing timer events
        socket = context.socket(zmq.PUB)
        socket.setsockopt(zmq.LINGER, 100)
        socket.bind('ipc://' + self.timer_sock)

        count = 0
        log.debug('ConCache-Timer started')
        while not self.stopped.wait(1):
            socket.send(self.serial.dumps(count))

            count += 1
            if count >= 60:
                count = 0
def run ( self ) : context = zmq . Context ( ) socket = context . socket ( zmq . PUB ) socket . setsockopt ( zmq . LINGER , 100 ) socket . bind ( 'ipc://' + self . timer_sock ) count = 0 log . debug ( 'ConCache-Timer started' ) while not self . stopped . wait ( 1 ) : socket . send ( self . serial . dumps ( count ) ) count += 1 if count >= 60 : count = 0
main loop that fires the event every second