mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-15 23:02:18 +01:00
add socket error message
This commit is contained in:
@@ -56,7 +56,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
|
||||
void socket_OnError(object sender, SocketHttpListener.ErrorEventArgs e)
|
||||
{
|
||||
EventHelper.FireEventIfNotNull(Closed, this, EventArgs.Empty, _logger);
|
||||
_logger.Error("Error in SharpWebSocket: {0}", e.Message ?? string.Empty);
|
||||
//EventHelper.FireEventIfNotNull(Closed, this, EventArgs.Empty, _logger);
|
||||
}
|
||||
|
||||
void socket_OnClose(object sender, SocketHttpListener.CloseEventArgs e)
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
{
|
||||
get
|
||||
{
|
||||
return _isActive;
|
||||
return HasOpenSockets;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace MediaBrowser.Server.Implementations.UserViews
|
||||
|
||||
public Stream BuildThumbCollage(IEnumerable<string> paths, string text, int width, int height)
|
||||
{
|
||||
using (var wand = BuildThumbCollageWandWithText(paths, text, width, height))
|
||||
using (var wand = BuildThumbCollageWand(paths, width, height))
|
||||
{
|
||||
return DynamicImageHelpers.GetStream(wand, _appPaths);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user