diff --git a/AutoLiveRecorder/AutoLiveRecorder.csproj b/AutoLiveRecorder/AutoLiveRecorder.csproj
index 4f06497..592956a 100644
--- a/AutoLiveRecorder/AutoLiveRecorder.csproj
+++ b/AutoLiveRecorder/AutoLiveRecorder.csproj
@@ -47,6 +47,9 @@
+
+
+
diff --git a/AutoLiveRecorder/Class/Bas.cs b/AutoLiveRecorder/Class/Bas.cs
index 90641fb..eea5933 100644
--- a/AutoLiveRecorder/Class/Bas.cs
+++ b/AutoLiveRecorder/Class/Bas.cs
@@ -3,8 +3,11 @@
using System.Collections.Generic;
using System.IO;
using System.Net;
+using System.Runtime.Serialization.Json;
+using System.Text;
using System.Text.RegularExpressions;
using System.Web.Script.Serialization;
+using System.Windows;
namespace AutoLiveRecorder
{
@@ -58,6 +61,7 @@ public static void Exit()
return;
}
}
+ SaveTasks();
Environment.Exit(0);
}
@@ -163,7 +167,7 @@ public static object GetJsonValueByKey(string JsonStr, string Keys, int step = 0
Dictionary p = serializer.Deserialize>(JsonStr);
if (p.ContainsKey(Key))
{
- if (p[Key].GetType() == typeof(ArrayList) && step < TolStep - 1)
+ if (p[Key]?.GetType() == typeof(ArrayList) && step < TolStep - 1)
{
ArrayList al = (ArrayList)p[Key];
List