Single line comments should start with a space

This commit is contained in:
Bond-009 2019-02-13 16:52:53 +01:00
parent 3df8cda110
commit ebae7229c1
5 changed files with 12 additions and 30 deletions

View File

@ -67,14 +67,6 @@ namespace Jellyfin.Server.SocketSharp
void socket_OnMessage(object sender, SocketHttpListener.MessageEventArgs e) void socket_OnMessage(object sender, SocketHttpListener.MessageEventArgs e)
{ {
//if (!string.IsNullOrEmpty(e.Data))
//{
// if (OnReceive != null)
// {
// OnReceive(e.Data);
// }
// return;
//}
if (OnReceiveBytes != null) if (OnReceiveBytes != null)
{ {
OnReceiveBytes(e.RawData); OnReceiveBytes(e.RawData);
@ -142,11 +134,5 @@ namespace Jellyfin.Server.SocketSharp
/// </summary> /// </summary>
/// <value>The receive action.</value> /// <value>The receive action.</value>
public Action<byte[]> OnReceiveBytes { get; set; } public Action<byte[]> OnReceiveBytes { get; set; }
/// <summary>
/// Gets or sets the on receive.
/// </summary>
/// <value>The on receive.</value>
public Action<string> OnReceive { get; set; }
} }
} }

View File

@ -201,7 +201,7 @@ namespace Jellyfin.Server.SocketSharp
} }
catch (ObjectDisposedException) catch (ObjectDisposedException)
{ {
//TODO Investigate and properly fix. // TODO: Investigate and properly fix.
} }
catch (Exception ex) catch (Exception ex)
{ {

View File

@ -147,10 +147,6 @@ namespace Jellyfin.Server.SocketSharp
{ {
sb.Append($";domain={cookie.Domain}"); sb.Append($";domain={cookie.Domain}");
} }
//else if (restrictAllCookiesToDomain != null)
//{
// sb.Append($";domain={restrictAllCookiesToDomain}");
//}
if (cookie.Secure) if (cookie.Secure)
{ {