Merge pull request #21181 from nextcloud/fix/remote-share-remove-error-handling
Do not only catch Exceptions but any Throwable during rmt share delete
This commit is contained in:
commit
111c8c9e0e
|
@ -520,7 +520,7 @@ class Manager {
|
|||
if ($result && $share !== false && (int)$share['share_type'] === Share::SHARE_TYPE_USER) {
|
||||
try {
|
||||
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
|
||||
} catch (\Exception $e) {
|
||||
} catch (\Throwable $e) {
|
||||
// if we fail to notify the remote (probably cause the remote is down)
|
||||
// we still want the share to be gone to prevent undeletable remotes
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue