Пример #1
0
 def _doRequest():
     LOG_DEBUG('Fort request to subscribe')
     result = self._requester.doRequestEx(FortRequestCtx(), callback,
                                          'subscribe')
     if result:
         self._waiters[FORT_REQUEST_TYPE.SUBSCRIBE] = BigWorld.callback(
             self._TIME_OUT, self._onTimeout)
         self._cooldown.process(FORT_REQUEST_TYPE.SUBSCRIBE)
Пример #2
0
 def unsubscribe(self, callback=None):
     LOG_DEBUG('Fort request to unsubscribe')
     self._requester.doRequestEx(FortRequestCtx(), callback, 'unsubscribe')
     return False