From 51ac3676d4f25eab3da0c2d8958f14bc779b566c Mon Sep 17 00:00:00 2001 From: nijenhofm Date: Mon, 27 Jul 2020 12:25:21 +0200 Subject: [PATCH] Correctie cleartelnet patch --- lmwsip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lmwsip.py b/lmwsip.py index a1e04b2..76b4b12 100644 --- a/lmwsip.py +++ b/lmwsip.py @@ -158,8 +158,9 @@ send a sip command to the server recieve a answer from the sip server """ + bytebuf=b'' stringbuf="" - while self._socket != None and re.search("\r$", buf) == None: + while self._socket != None and re.search("\r$", bytebuf.decode('utf-8')) == None: try: self.log.debug("LmwSip.recv: Waiting for data"); bytebuf = self._socket.recv(4096)