diff --git a/squirrowse.client/Connection.cs b/squirrowse.client/Connection.cs index 16d51bd..a67d78e 100644 --- a/squirrowse.client/Connection.cs +++ b/squirrowse.client/Connection.cs @@ -24,7 +24,7 @@ namespace squirrowse.client for (;;) { var data = _cam.GetBitmap(); - await Task.Delay(1000 / 33); + await Task.Delay(100); yield return data; } diff --git a/squirrowse.client/WebCam.cs b/squirrowse.client/WebCam.cs index 8e41837..799a8d0 100644 --- a/squirrowse.client/WebCam.cs +++ b/squirrowse.client/WebCam.cs @@ -56,10 +56,13 @@ namespace squirrowse.client try { + Thread.Sleep(100); return image; + } catch { + Thread.Sleep(100); return image; }