mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
control the number of simultaneous image operations
This commit is contained in:
@@ -88,7 +88,7 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||
NatUtility.UnhandledException += NatUtility_UnhandledException;
|
||||
NatUtility.StartDiscovery();
|
||||
|
||||
_timer = new Timer(s => _createdRules = new List<string>(), null, TimeSpan.FromMinutes(3), TimeSpan.FromMinutes(3));
|
||||
_timer = new Timer(s => _createdRules = new List<string>(), null, TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(5));
|
||||
|
||||
_lastConfigIdentifier = GetConfigIdentifier();
|
||||
|
||||
@@ -97,17 +97,17 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||
|
||||
void NatUtility_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||
{
|
||||
//var ex = e.ExceptionObject as Exception;
|
||||
var ex = e.ExceptionObject as Exception;
|
||||
|
||||
//if (ex == null)
|
||||
//{
|
||||
// _logger.Error("Unidentified error reported by Mono.Nat");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// // Seeing some blank exceptions coming through here
|
||||
// _logger.ErrorException("Error reported by Mono.Nat: ", ex);
|
||||
//}
|
||||
if (ex == null)
|
||||
{
|
||||
//_logger.Error("Unidentified error reported by Mono.Nat");
|
||||
}
|
||||
else
|
||||
{
|
||||
// Seeing some blank exceptions coming through here
|
||||
_logger.ErrorException("Error reported by Mono.Nat: ", ex);
|
||||
}
|
||||
}
|
||||
|
||||
void NatUtility_DeviceFound(object sender, DeviceEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user