Skip to content

Commit

Permalink
Failing interface will not affect shut down procedure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bounz committed Oct 27, 2018
1 parent 5f8895b commit 8bc26bc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions HomeGenie/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,15 @@ private static void ShutDown(bool restart, bool saveData = true)

if (Homegenie != null)
{
Homegenie.Stop(saveData);
Homegenie = null;
try
{
Homegenie.Stop(saveData);
Homegenie = null;
}
catch (Exception e)
{
Log.Error(e);
}
}

if (restart)
Expand Down

0 comments on commit 8bc26bc

Please sign in to comment.