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:
parent
8dc057a70e
commit
95a9a45604
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ def __init__(self, location, create=False):
|
||||||
def wait(self, write=True):
|
def wait(self, write=True):
|
||||||
with self.channel.lock:
|
with self.channel.lock:
|
||||||
if ((not write or self.channel.out_window_size == 0) and
|
if ((not write or self.channel.out_window_size == 0) and
|
||||||
not self.channel.recv_ready() and
|
len(self.channel.in_buffer._buffer) == 0 and
|
||||||
not self.channel.recv_stderr_ready()):
|
len(self.channel.in_stderr_buffer._buffer) == 0):
|
||||||
self.channel.out_buffer_cv.wait(10)
|
self.channel.out_buffer_cv.wait(10)
|
||||||
|
|
||||||
def cmd(self, cmd, args, callback=None, callback_data=None):
|
def cmd(self, cmd, args, callback=None, callback_data=None):
|
||||||
|
|
Loading…
Reference in a new issue