##// END OF EJS Templates
httpconnection: make sure to clear progress of httpsendfile at EOF...
Yuya Nishihara -
r31488:766364ca default
parent child Browse files
Show More
@@ -44,10 +44,10 b' class httpsendfile(object):'
44 self._total = self.length // 1024 * 2
44 self._total = self.length // 1024 * 2
45
45
46 def read(self, *args, **kwargs):
46 def read(self, *args, **kwargs):
47 try:
47 ret = self._data.read(*args, **kwargs)
48 ret = self._data.read(*args, **kwargs)
48 if not ret:
49 except EOFError:
50 self.ui.progress(_('sending'), None)
49 self.ui.progress(_('sending'), None)
50 return ret
51 self._pos += len(ret)
51 self._pos += len(ret)
52 # We pass double the max for total because we currently have
52 # We pass double the max for total because we currently have
53 # to send the bundle twice in the case of a server that
53 # to send the bundle twice in the case of a server that
General Comments 0
You need to be logged in to leave comments. Login now