From 12bb9b3a1512c00a421a9e0a778e5b10aa6a242f Mon Sep 17 00:00:00 2001 From: Matt Johnson Date: Sat, 14 Sep 2013 22:14:25 -0700 Subject: [PATCH] Sleep just a little less... 100ms was too much and slowed down the listener. 10ms still gives the perf gain without slowing it down so much. --- Syndll2/Receiver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Syndll2/Receiver.cs b/Syndll2/Receiver.cs index 27981f0..fca559c 100644 --- a/Syndll2/Receiver.cs +++ b/Syndll2/Receiver.cs @@ -85,7 +85,7 @@ private void OnDataReceived(IAsyncResult asyncResult) } // Sleep here to not eat up too much CPU - Thread.Sleep(100); + Thread.Sleep(10); // Repeat, to continually watch the stream for incoming data. WatchStream();