예제 #1
0
파일: async.py 프로젝트: citysir/pynsq
 def _on_message_touch(self, message, **kwargs):
     try:
         self.send(protocol.touch(message.id))
     except Exception, e:
         self.close()
         self.trigger(
             event.ERROR,
             conn=self,
             error=protocol.SendError('failed to send TOUCH %s' % message.id, e),
         )
예제 #2
0
 def _on_message_touch(self, message, **kwargs):
     try:
         self.send(protocol.touch(message.id))
     except Exception, e:
         self.close()
         self.trigger(
             event.ERROR,
             conn=self,
             error=protocol.SendError('failed to send TOUCH %s' % message.id, e),
         )