From 1c3bb4acd175ec2ef13fa1edcf2fc7d765a0df45 Mon Sep 17 00:00:00 2001 From: Zader Zheng Date: Sat, 18 Apr 2015 00:00:29 +0800 Subject: don't need to find old socket file now --- lab_monitor_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lab_monitor_server.py b/lab_monitor_server.py index 50f9430..1c664cd 100644 --- a/lab_monitor_server.py +++ b/lab_monitor_server.py @@ -110,10 +110,10 @@ def command_server(): conn.close() def cmd_shutdown(): - global is_exiting, cmd_socket, local_socket_address, cmd + global is_exiting, cmd_socket, cmd is_exiting.set(); cmd_socket.close() - socket(AF_INET).connect(local_socket_address) + socket.socket(AF_INET, SOCK_STREAM).connect((HOST, SOCKET_PORT)) cmd.join() class AJAXHandler(RequestHandler): -- cgit v1.2.3-70-g09d2