diff --git a/ninaAPI/AdvancedAPI.cs b/ninaAPI/AdvancedAPI.cs
index 64c7ce1..32ba347 100644
--- a/ninaAPI/AdvancedAPI.cs
+++ b/ninaAPI/AdvancedAPI.cs
@@ -112,6 +112,7 @@ public AdvancedAPI(ICameraMediator camera,
{
SetHostNames();
Server = new API();
+ Server.Start();
}
});
}
diff --git a/ninaAPI/Options.xaml b/ninaAPI/Options.xaml
index 54d5ca3..9dafb82 100644
--- a/ninaAPI/Options.xaml
+++ b/ninaAPI/Options.xaml
@@ -95,74 +95,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ninaAPI/Properties/AssemblyInfo.cs b/ninaAPI/Properties/AssemblyInfo.cs
index 99f7460..c5d1198 100644
--- a/ninaAPI/Properties/AssemblyInfo.cs
+++ b/ninaAPI/Properties/AssemblyInfo.cs
@@ -6,8 +6,8 @@
// [MANDATORY] The assembly versioning
//Should be incremented for each new release build of a plugin
-[assembly: AssemblyVersion("2.0.0.0")]
-[assembly: AssemblyFileVersion("2.0.0.0")]
+[assembly: AssemblyVersion("2.0.0.1")]
+[assembly: AssemblyFileVersion("2.0.0.1")]
// [MANDATORY] The name of your plugin
[assembly: AssemblyTitle("Advanced API")]
diff --git a/ninaAPI/WebService/V1/WebSocket.cs b/ninaAPI/WebService/V1/WebSocket.cs
index 3124e3b..c275ff8 100644
--- a/ninaAPI/WebService/V1/WebSocket.cs
+++ b/ninaAPI/WebService/V1/WebSocket.cs
@@ -63,14 +63,12 @@ public WebSocket(string urlPath) : base(urlPath, true)
public static List Images = new List();
public static List Events = new List();
- private async void ImageSaved(object sender, ImageSavedEventArgs e)
+ private void ImageSaved(object sender, ImageSavedEventArgs e)
{
if (!e.MetaData.Image.ImageType.Equals("LIGHT"))
return;
HttpResponse response = new HttpResponse() { Type = HttpResponse.TypeSocket };
- e.Image = null;
- e.Statistics.Histogram.Clear();
response.Response = new Dictionary()
{
@@ -95,7 +93,7 @@ private async void ImageSaved(object sender, ImageSavedEventArgs e)
Images.Add(response);
- await Send(response);
+ Send(response);
}
private async void LogProcessor_NINALogEventSaved(object sender, NINALogEvent e)
diff --git a/ninaAPI/WebService/V2/WebSocketV2.cs b/ninaAPI/WebService/V2/WebSocketV2.cs
index 8a08d1b..2f2f9e8 100644
--- a/ninaAPI/WebService/V2/WebSocketV2.cs
+++ b/ninaAPI/WebService/V2/WebSocketV2.cs
@@ -66,7 +66,7 @@ public WebSocketV2(string urlPath) : base(urlPath, true)
public static List Images = new List();
public static List Events = new List();
- private async void ImageSaved(object sender, ImageSavedEventArgs e)
+ private void ImageSaved(object sender, ImageSavedEventArgs e)
{
if (!e.MetaData.Image.ImageType.Equals("LIGHT"))
return;
@@ -102,7 +102,7 @@ private async void ImageSaved(object sender, ImageSavedEventArgs e)
Images.Add(response);
Events.Add(imageEvent);
- await Send(response);
+ Send(response);
}
private async void LogProcessor_NINALogEventSaved(object sender, NINALogEvent e)