Correctie cleartelnet patch

This commit is contained in:
2020-07-27 12:25:21 +02:00
parent e24b1ebc1e
commit 51ac3676d4

View File

@@ -158,8 +158,9 @@ send a sip command to the server
recieve a answer from the sip server recieve a answer from the sip server
""" """
bytebuf=b''
stringbuf="" 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: try:
self.log.debug("LmwSip.recv: Waiting for data"); self.log.debug("LmwSip.recv: Waiting for data");
bytebuf = self._socket.recv(4096) bytebuf = self._socket.recv(4096)