Skip to content

Commit 5cc462a

Browse files
committed
[Modify] Polish it
1 parent b8bc01d commit 5cc462a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Example1/AudioStreamer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private void configure ()
3939
_websocket.Send (createTextMessage ("connection", String.Empty));
4040

4141
_websocket.OnMessage += (sender, e) => {
42-
if (e.Type == Opcode.Text) {
42+
if (e.IsText) {
4343
_notifier.Notify (convertTextMessage (e.Data));
4444
}
4545
else {

Example1/Notifier.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ public int Count {
5454
private NotificationMessage dequeue ()
5555
{
5656
lock (_sync)
57-
return _queue.Count > 0
58-
? _queue.Dequeue ()
59-
: null;
57+
return _queue.Count > 0 ? _queue.Dequeue () : null;
6058
}
6159

6260
public void Close ()

0 commit comments

Comments
 (0)