Use right var name
This commit is contained in:
parent
5c565bc62c
commit
a87893199c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user