mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4693] [CLOSED] Safer startup. #10227
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4693
Author: @BaronGreenback
Created: 12/6/2020
Status: ❌ Closed
Base:
master← Head:startupFix📝 Commits (3)
02ca75fUpdate ApplicationHost.cs3652e95Made it compile.e959a89Update Emby.Server.Implementations/ApplicationHost.cs📊 Changes
1 file changed (+21 additions, -2 deletions)
View changed files
📝
Emby.Server.Implementations/ApplicationHost.cs(+21 -2)📄 Description
It looks like it would be possible for a plugin to crash the system by generating an exception in their IServerEntryPoint implementation.
All methods are executed by a Task.WhenAll. According to the docs, this only reports the last error generated, and if i'm reading the code right, would crash.
This PR introduces another exception catching layer between the two. This should enable failed plugins to log exceptions without a crashing occurring.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.