mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Merge Branch: Fixed Bug #3039151
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@792 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
b6e44aae1e
commit
660716d9f1
1 changed files with 8 additions and 1 deletions
|
@ -87,8 +87,15 @@ namespace Greenshot {
|
|||
if (!applicationMutex.WaitOne(0, false)) {
|
||||
isAlreadyRunning = true;
|
||||
}
|
||||
} catch (AbandonedMutexException e) {
|
||||
// Another Greenshot instance didn't cleanup correctly!
|
||||
// we can ignore the exception, it happend on the "waitone" but still the mutex belongs to us
|
||||
LOG.Warn("Greenshot didn't cleanup correctly!", e);
|
||||
} catch (UnauthorizedAccessException e) {
|
||||
LOG.Warn("Greenshot is most likely already running for a different user in the same session, can't create mutex due to error: ", e);
|
||||
isAlreadyRunning = true;
|
||||
} catch (Exception e) {
|
||||
LOG.Error("Can't create Mutex, for now we assume it's already there.", e);
|
||||
LOG.Warn("Problem obtaining the Mutex, assuming it was already taken!", e);
|
||||
isAlreadyRunning = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue