Skip to content
This repository has been archived by the owner on Jan 11, 2018. It is now read-only.

Commit

Permalink
ServerSocket logging
Browse files Browse the repository at this point in the history
Added some logging statements to the ServerSocket, to ease debugging an
issue, namely when the bot is injected, but the server socket is never
started.
  • Loading branch information
Skeen committed Mar 20, 2014
1 parent e877f38 commit eb2dae4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/Bot/src/ServerSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public ServerSocket()
thread = new Thread(new ThreadStart(run));

mutex = new Mutex();
Log.log("ServerSocket loaded!");
}

public void stop()
Expand All @@ -60,6 +61,7 @@ public void start()

private void run()
{
Log.log("ServerSocket running!");
// Open a server socket
try
{
Expand All @@ -73,6 +75,7 @@ private void run()
}
// Start listening
socket.Start();
Log.log("ServerSocket started!");

try
{
Expand Down Expand Up @@ -122,6 +125,7 @@ private void run()
Log.error(e.StackTrace);
}

Log.log("ServerSocket stopped!");
// Stop listening
socket.Stop();
}
Expand Down

0 comments on commit eb2dae4

Please sign in to comment.