forked from M-Labs/artiq
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):
|
||||
self.socket = socket.create_connection((host, port))
|
||||
|
||||
def close(self):
|
||||
def close_rpc(self):
|
||||
self.socket.close()
|
||||
|
||||
def do_rpc(self, name, args, kwargs):
|
||||
|
@ -37,7 +37,7 @@ def main():
|
||||
if args.quit_master:
|
||||
remote.quit()
|
||||
finally:
|
||||
remote.close()
|
||||
remote.close_rpc()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user