Use right var name

This commit is contained in:
clerie 2022-01-06 23:55:01 +01:00
parent 5c565bc62c
commit a87893199c

View File

@ -39,7 +39,7 @@ class Session:
""" """
while True: while True:
r = self.connection.recv() r = self._connection.recv()
if r is not None: if r is not None:
return r return r
sleep(0.1) sleep(0.1)
@ -75,7 +75,7 @@ class Session:
""" """
message = messages.construct(request) message = messages.construct(request)
self.connection.send(message) self._connection.send(message)
res = self._wait_for_respose() res = self._wait_for_respose()
return messages.parse(res) return messages.parse(res)