From f99f6c63454fb2deaaeeab065658978379c248d7 Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Fri, 17 May 2019 18:27:49 +0100 Subject: [PATCH] Fix change of behaviour on execute introduced in #363 Essentially, the behavior changed for when a caller to the container's execute method wished to handle the packets received back on the websocket. This change fixes the reversion. Signed-off-by: Alex Kavanagh --- pylxd/models/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylxd/models/container.py b/pylxd/models/container.py index 4c4f91e3..d13c26a5 100644 --- a/pylxd/models/container.py +++ b/pylxd/models/container.py @@ -641,7 +641,7 @@ def received_message(self, message): self.last_message_empty = True if self.finish_off: self.finished = True - return + return else: self.last_message_empty = False if message.encoding and self.message_encoding is None: