Commits

Josh VanderLinden committed d8d8f12

Status event

  • Participants
  • Parent commits 0177edf

Comments (0)

Files changed (2)

 # Maintainer: Josh VanderLinden <arch@cloudlery.com>
 pkgname=zedify
 pkgver=20130516
-pkgrel=1
+pkgrel=2
 pkgdesc="Deliver message notifications to remote machines"
 arch=('any')
 url="http://bitbucket.org/codekoala/zedify"

File zedify/remote.py

                 else:
                     self.log.error('Unexpected message: {}'.format(msg))
 
-                self.send_status()
+                if ev != 'status':
+                    self.handle_status()
 
         except KeyboardInterrupt:
             pass
             self.pub.close()
             self.sub.close()
 
-    def send_status(self, msg=None):
+    def handle_status(self, msg=None):
         """Publish the number of unseen messages"""
 
         self.pub.send_json({