##// END OF EJS Templates
wireprotov2peer: always return a bool from _processredirect()...
Gregory Szorc -
r40789:94b0d0f9 stable
parent child Browse files
Show More
@@ -458,7 +458,10 b' class clienthandler(object):'
458 458 self._redirects.append((requestid, res))
459 459
460 460 def _processredirect(self, rid, res):
461 """Called to continue processing a response from a redirect."""
461 """Called to continue processing a response from a redirect.
462
463 Returns a bool indicating if the redirect is still serviceable.
464 """
462 465 response = self._responses[rid]
463 466
464 467 try:
@@ -470,7 +473,7 b' class clienthandler(object):'
470 473 response._oninputcomplete()
471 474
472 475 if rid not in self._futures:
473 return
476 return bool(data)
474 477
475 478 if response.command not in COMMAND_DECODERS:
476 479 self._futures[rid].set_result(response.objects())
General Comments 0
You need to be logged in to leave comments. Login now