mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Single line comments should start with a space
This commit is contained in:
parent
3df8cda110
commit
ebae7229c1
@ -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; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user