Commit 22c9bd3b authored by mercury233's avatar mercury233

update debug

parent ce84e366
...@@ -190,18 +190,23 @@ namespace WindBot ...@@ -190,18 +190,23 @@ namespace WindBot
private static void Run(object o) private static void Run(object o)
{ {
#if !DEBUG
try try
{ {
#endif
WindBotInfo Info = (WindBotInfo)o; WindBotInfo Info = (WindBotInfo)o;
GameClient client = new GameClient(Info); GameClient client = new GameClient(Info);
client.Start(); client.Start();
Logger.DebugWriteLine(client.Username + " started."); Logger.DebugWriteLine(client.Username + " started.");
while (client.Connection.IsConnected) while (client.Connection.IsConnected)
{ {
#if !DEBUG
try try
{ {
#endif
client.Tick(); client.Tick();
Thread.Sleep(30); Thread.Sleep(30);
#if !DEBUG
} }
catch (Exception ex) catch (Exception ex)
{ {
...@@ -210,8 +215,10 @@ namespace WindBot ...@@ -210,8 +215,10 @@ namespace WindBot
else else
throw ex; throw ex;
} }
#endif
} }
Logger.DebugWriteLine(client.Username + " end."); Logger.DebugWriteLine(client.Username + " end.");
#if !DEBUG
} }
catch (Exception ex) catch (Exception ex)
{ {
...@@ -220,6 +227,7 @@ namespace WindBot ...@@ -220,6 +227,7 @@ namespace WindBot
else else
throw ex; throw ex;
} }
#endif
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment