Exemplo n.º 1
0
 def _terminate_handler(self, request):
     with self._condition:
         self._peer_terminated = True
         self._terminated_at = max(self._terminated_at, int(time.time()))
         self._condition.notifyAll()
     return tws_pb.TerminateResponse(
         timestamp=self._terminated_at)
Exemplo n.º 2
0
 def _terminate_handler(self, request):
     with self._condition:
         self._peer_terminated = True
         self._condition.notifyAll()
     return tws_pb.TerminateResponse()