Gave all Threads a name, which simplifies debugging. Also fixed a problem with the Destination Picker, not closing the menu until something is clicked, this solves the problem with Disposing the surface!

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1613 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-01-31 16:02:17 +00:00
parent 27d28efbeb
commit 299a4fba72
10 changed files with 37 additions and 25 deletions

View file

@ -42,6 +42,7 @@ namespace GreenshotNetworkImportPlugin {
}
public void StartListening() {
Thread serverThread = new Thread(Listen);
serverThread.Name = "HTTP Receiver";
serverThread.SetApartmentState(ApartmentState.STA);
serverThread.Start();
}
@ -92,7 +93,9 @@ namespace GreenshotNetworkImportPlugin {
}
try {
HttpListenerContext context = listener.EndGetContext(result);
new Thread(ProcessRequest).Start(context);
Thread requestThread = new Thread(ProcessRequest);
requestThread.Name = "Process Request";
requestThread.Start(context);
} catch (HttpListenerException httpE) {
LOG.Error(httpE);
}