diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-12 15:25:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-12 15:29:56 +0100 |
commit | 79adf16931f9f7079f98fe7f58c6a67a7723c6c9 (patch) | |
tree | bffe3214d383d63f9b828434310ddfde5a031c7d /bitbake/lib/bb/command.py | |
parent | 909a9f5e8e6dd5c4587d42a83d849c77d88476d9 (diff) | |
download | poky-79adf16931f9f7079f98fe7f58c6a67a7723c6c9.tar.gz |
bitbake: cooker/command: Fix disconnection handling
After the recent init changes, if a client disconnects before issuing a
command, the cooker can break in the reset handlers. Add some guards
in the code to prevent this.
(Bitbake rev: 12605e30e4c4e1ae6a67c97363b892ebf0b9566c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index d4dcc653a0..f8c6a03bb9 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -143,7 +143,8 @@ class Command: | |||
143 | self.cooker.finishcommand() | 143 | self.cooker.finishcommand() |
144 | 144 | ||
145 | def reset(self): | 145 | def reset(self): |
146 | self.remotedatastores = bb.remotedata.RemoteDatastores(self.cooker) | 146 | if self.remotedatastores: |
147 | self.remotedatastores = bb.remotedata.RemoteDatastores(self.cooker) | ||
147 | 148 | ||
148 | class CommandsSync: | 149 | class CommandsSync: |
149 | """ | 150 | """ |