Skip to content

Commit

Permalink
Sleep just a little less...
Browse files Browse the repository at this point in the history
100ms was too much and slowed down the listener.  10ms still gives the
perf gain without slowing it down so much.
  • Loading branch information
mattjohnsonpint committed Sep 15, 2013
1 parent 8b04cd4 commit 12bb9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Syndll2/Receiver.cs
Expand Up @@ -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();
Expand Down

0 comments on commit 12bb9b3

Please sign in to comment.