[smuxi: 5/10] Frontend-STFL: Implement gentle session shutdown on quit
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 5/10] Frontend-STFL: Implement gentle session shutdown on quit
- Date: Fri, 28 Feb 2014 20:53:58 +0000 (UTC)
commit dde8dfe3bc1ad9fdc7d01cd1235098eebe494ecc
Author: Calvin B <calvin imaginarycode com>
Date: Sun Feb 23 14:13:31 2014 -0400
Frontend-STFL: Implement gentle session shutdown on quit
src/Frontend-STFL/Frontend.cs | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend-STFL/Frontend.cs b/src/Frontend-STFL/Frontend.cs
index 9d9a741..360511a 100644
--- a/src/Frontend-STFL/Frontend.cs
+++ b/src/Frontend-STFL/Frontend.cs
@@ -265,6 +265,16 @@ namespace Smuxi.Frontend.Stfl
{
if (_FrontendManager != null) {
_FrontendManager.IsFrontendDisconnecting = true;
+ if (IsLocalEngine) {
+ try {
+ // we don't shutdown the remote session
+ Session.Shutdown();
+ } catch (Exception ex) {
+#if LOG4NET
+ _Logger.Error("Quit(): Exception", ex);
+#endif
+ }
+ }
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]