Skip to content
Snippets Groups Projects
Commit 350dcd48 authored by Idan Kamara's avatar Idan Kamara
Browse files

cmdserver: fix read-loop string concatenation

parent d4b9d3b9
No related branches found
No related tags found
No related merge requests found
......@@ -73,4 +73,5 @@
s = self._read(size, self.channel)
buf = s
while s:
s = self._read(size, self.channel)
buf += s
......@@ -76,5 +77,4 @@
buf += s
s = self._read(size, self.channel)
return buf
else:
......@@ -104,4 +104,5 @@
# keep asking for more until there's either no more or
# we got a full line
while s and s[-1] != '\n':
s = self._read(size, 'L')
buf += s
......@@ -107,5 +108,4 @@
buf += s
s = self._read(size, 'L')
return buf
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment