提交 f4ce7e31 编写于 作者: W wanghaoshuang

Fix strip of socket message.

上级 0ae8e939
......@@ -51,7 +51,7 @@ class ControllerClient(object):
socket_client.send("{}\t{}\t{}".format(self._key, tokens, reward)
.encode())
response = socket_client.recv(1024).decode()
if response.trip('\n').split("\t") == "ok":
if response.strip('\n').split("\t") == "ok":
return True
else:
return False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册