Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Sox/Server/WebSocketServer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Sox.Extensions;
using Sox.Extensions;
using Sox.Http;
using Sox.Server.Events;
using Sox.Server.State;
Expand Down Expand Up @@ -297,7 +297,6 @@ await Task.Factory.StartNew(async (state) =>
}
}
}

}, TaskCreationOptions.AttachedToParent, cancellationToken: _cancellationTokenSource.Token);
}

Expand Down
6 changes: 3 additions & 3 deletions Sox/Websocket/Rfc6455/Framing/Frame.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Sox.Extensions;
using Sox.Extensions;
using Sox.Websocket.Rfc6455.Messaging;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -81,7 +81,7 @@ internal Frame(bool isFinal, bool rsv1, bool rsv2, bool rsv3,
payloadLength);

MaskingKey = maskingKey;
Data = data ?? new byte[0];
Data = data ?? Array.Empty<byte>();
}

/// <summary>
Expand All @@ -94,7 +94,7 @@ internal Frame(FrameHeaders headers, byte[] maskingKey, byte[] data)
{
Headers = headers;
MaskingKey = maskingKey;
Data = data ?? new byte[0];
Data = data ?? Array.Empty<byte>();
}

#region Factory Methods
Expand Down