summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2020-03-30 17:43:20 +0200
committerGitHub <noreply@github.com>2020-03-30 17:43:20 +0200
commit7ecf88318c93f6a0407780ee1bed0ca241073b76 (patch)
treecb0aa73ca686705b5dd1076d6d3cbdacbd08e08c
parent23877ab4afbf0c2fe4092936261d92d7b7fbff11 (diff)
parent5349bc9d1105c71158fce8dfd6a4733eb90dbb1a (diff)
downloadtargetcli-7ecf88318c93f6a0407780ee1bed0ca241073b76.tar.gz
Merge pull request #165 from pkalever/targetclid-fix
Fix targetclid daemon infinite stuck
-rwxr-xr-xdaemon/targetclid2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/targetclid b/daemon/targetclid
index dfc22ce..d4c6562 100755
--- a/daemon/targetclid
+++ b/daemon/targetclid
@@ -154,7 +154,7 @@ class TargetCLI:
connection.close()
still_listen = False
else:
- self.con._stdout = self.con._stderr = f = io.StringIO()
+ self.con._stdout = self.con._stderr = f = io.BytesIO()
try:
# extract multiple commands delimited with '%'
list_data = data.decode().split('%')