1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 08:45:13 +00:00

Fixed remote store race condition

This commit is contained in:
Jonas Borgström 2011-07-31 18:22:58 +02:00
parent 8dc057a70e
commit 95a9a45604

View file

@ -111,8 +111,8 @@ def __init__(self, location, create=False):
def wait(self, write=True):
with self.channel.lock:
if ((not write or self.channel.out_window_size == 0) and
not self.channel.recv_ready() and
not self.channel.recv_stderr_ready()):
len(self.channel.in_buffer._buffer) == 0 and
len(self.channel.in_stderr_buffer._buffer) == 0):
self.channel.out_buffer_cv.wait(10)
def cmd(self, cmd, args, callback=None, callback_data=None):