mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Unregister enc stream wrapper for any exception
This prevents side effects in tests by properly cleaning up even with expected exceptions. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
60e44077b7
commit
9c6bbfac45
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ class Encryption extends Wrapper {
|
|||
} else {
|
||||
$wrapped = fopen($protocol . '://', $mode, false, $context);
|
||||
}
|
||||
} catch (\BadMethodCallException $e) {
|
||||
} catch (\Exception $e) {
|
||||
stream_wrapper_unregister($protocol);
|
||||
throw $e;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue