mirror of https://github.com/m-labs/artiq.git
pc_rpc: avoid 'close' name conflict in client
This commit is contained in:
parent
f106b238eb
commit
513aa393b0
|
@ -12,7 +12,7 @@ class Client:
|
||||||
def __init__(self, host, port):
|
def __init__(self, host, port):
|
||||||
self.socket = socket.create_connection((host, port))
|
self.socket = socket.create_connection((host, port))
|
||||||
|
|
||||||
def close(self):
|
def close_rpc(self):
|
||||||
self.socket.close()
|
self.socket.close()
|
||||||
|
|
||||||
def do_rpc(self, name, args, kwargs):
|
def do_rpc(self, name, args, kwargs):
|
||||||
|
|
|
@ -37,7 +37,7 @@ def main():
|
||||||
if args.quit_master:
|
if args.quit_master:
|
||||||
remote.quit()
|
remote.quit()
|
||||||
finally:
|
finally:
|
||||||
remote.close()
|
remote.close_rpc()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue