[longomatch] Graceful shutdown if an addin requested it.



commit bd42d225970e4c2574377dafad2ef33b8ae64786
Author: Julien Moutte <julien fluendo com>
Date:   Tue Dec 2 15:47:13 2014 +0100

    Graceful shutdown if an addin requested it.

 LongoMatch/Main.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch/Main.cs b/LongoMatch/Main.cs
index fac606e..653b9da 100644
--- a/LongoMatch/Main.cs
+++ b/LongoMatch/Main.cs
@@ -85,6 +85,8 @@ namespace LongoMatch
                                AddinsManager.LoadDashboards (Config.CategoriesTemplatesProvider);
                                AddinsManager.LoadImportProjectAddins (CoreServices.ProjectsImporter);
                                Application.Run ();
+                       }  catch (AddinRequestShutdownException arse) {
+                               // Abort gracefully
                        } catch (Exception ex) {
                                ProcessExecutionError (ex);
                        } finally {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]