diff --git a/ding_client b/ding_client index 9ca917f..773e504 100755 --- a/ding_client +++ b/ding_client @@ -8,6 +8,9 @@ import configparser CONFIG = "ding_client.cfg" +global exitcode +exitcode = 1 + def readConfig(): cfg = configparser.SafeConfigParser() try: @@ -28,8 +31,6 @@ def readConfig(): def send(conn, cmd): - global exitcode - conn.connect((host, port)) buf = conn.recv(1024) if(buf == b"OK 1337\n"):