|
|
@ -321,9 +321,15 @@ namespace Emby.Server.Implementations.Updates
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_completedInstallationsInternal.Add(package);
|
|
|
|
_completedInstallationsInternal.Add(package);
|
|
|
|
await _eventManager.PublishAsync(isUpdate
|
|
|
|
|
|
|
|
? (GenericEventArgs<InstallationInfo>)new PluginUpdatedEventArgs(package)
|
|
|
|
if (isUpdate)
|
|
|
|
: new PluginInstalledEventArgs(package)).ConfigureAwait(false);
|
|
|
|
{
|
|
|
|
|
|
|
|
await _eventManager.PublishAsync(new PluginUpdatedEventArgs(package)).ConfigureAwait(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
await _eventManager.PublishAsync(new PluginInstalledEventArgs(package)).ConfigureAwait(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_applicationHost.NotifyPendingRestart();
|
|
|
|
_applicationHost.NotifyPendingRestart();
|
|
|
|
}
|
|
|
|
}
|
|
|
|