repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't crash on exit in cectray by preventing a new action from being started
[deb_libcec.git]
/
src
/
LibCecTray
/
controller
/
Actions.cs
diff --git
a/src/LibCecTray/controller/Actions.cs
b/src/LibCecTray/controller/Actions.cs
index 2d065a94d192b705a7c929cf01af4074efbd0a5d..2970ede803824a9a3af27b3acb6380e41634e719 100644
(file)
--- a/
src/LibCecTray/controller/Actions.cs
+++ b/
src/LibCecTray/controller/Actions.cs
@@
-1,7
+1,7
@@
/*
* This file is part of the libCEC(R) library.
*
/*
* This file is part of the libCEC(R) library.
*
- * libCEC(R) is Copyright (C) 2011-201
2
Pulse-Eight Limited. All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-201
3
Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
@@
-94,7
+94,7
@@
namespace LibCECTray.controller
_controller.CheckActiveDevices();
break;
case UpdateEventType.ProcessCompleted:
_controller.CheckActiveDevices();
break;
case UpdateEventType.ProcessCompleted:
- if (!(_activeProcess is GetCurrentPhysicalAddress))
+ if (!(_activeProcess is GetCurrentPhysicalAddress)
&& !SuppressUpdates
)
{
_activeProcess = new GetCurrentPhysicalAddress(_controller.Lib);
_activeProcess.EventHandler += ProcessEventHandler;
{
_activeProcess = new GetCurrentPhysicalAddress(_controller.Lib);
_activeProcess.EventHandler += ProcessEventHandler;
@@
-123,6
+123,7
@@
namespace LibCECTray.controller
break;
case UpdateEventType.ExitApplication:
break;
case UpdateEventType.ExitApplication:
+ SuppressUpdates = true;
_activeProcess = null;
Application.Exit();
break;
_activeProcess = null;
Application.Exit();
break;