update sync progress display

This commit is contained in:
Luke Pulverenti
2015-10-02 14:30:27 -04:00
parent 713083b34a
commit e76e8bb96c
4 changed files with 18 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
}
public Action OnComplete { get; set; }
public Action OnError { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="StreamWriter" /> class.
@@ -102,6 +103,11 @@ namespace MediaBrowser.Server.Implementations.HttpServer
{
Logger.ErrorException("Error streaming data", ex);
if (OnError != null)
{
OnError();
}
throw;
}
finally