mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
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:
parent
27d28efbeb
commit
299a4fba72
10 changed files with 37 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue