Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alstroemeria-silentlove
windbot
Commits
22c9bd3b
Commit
22c9bd3b
authored
Aug 19, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update debug
parent
ce84e366
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Program.cs
Program.cs
+8
-0
No files found.
Program.cs
View file @
22c9bd3b
...
@@ -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
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment