diff --git a/AutoKeyLight/MainForm.cs b/AutoKeyLight/MainForm.cs index 04270a6..96857d6 100644 --- a/AutoKeyLight/MainForm.cs +++ b/AutoKeyLight/MainForm.cs @@ -210,7 +210,7 @@ private void CameraIsOn() StringContent httpContent = new StringContent("{\"lights\": [{\"on\": 1}]}", Encoding.UTF8, "application/json"); try { - httpClient.PutAsync(keylightURL, httpContent).Wait(); + httpClient.PutAsync(keylightURL, httpContent); } catch { } } @@ -234,7 +234,7 @@ private void CameraIsOff() try { - httpClient.PutAsync(keylightURL, httpContent).Wait(); + httpClient.PutAsync(keylightURL, httpContent); } catch { } }