Changeset ee8307c


Ignore:
Timestamp:
2015-07-30T23:22:47Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
e1352e15
Parents:
8e5751e
Message:

Fix two callbacks in wa.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/wa.py

    r8e5751e ree8307c  
    354354        def keepalive(self):
    355355                if (time.time() - self.last_pong) > self.PING_TIMEOUT:
    356                         self.error("Ping timeout")
    357                         self.logout(True)
     356                        self.cb.error("Ping timeout")
     357                        self.cb.logout(True)
    358358                        return
    359359                if self.next_ping and (time.time() < self.next_ping):
Note: See TracChangeset for help on using the changeset viewer.