Skip to content

Commit fc585e0

Browse files
icewind1991backportbot[bot]
authored andcommitted
fix: handle smb timeouts as storage not available
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 94a5e14 commit fc585e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/files_external/lib/Lib/Storage

apps/files_external/lib/Lib/Storage/SMB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public function stat($path, $retry = true) {
354354
if ($retry) {
355355
return $this->stat($path, false);
356356
} else {
357-
throw $e;
357+
throw new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
358358
}
359359
}
360360
if ($this->remoteIsShare() && $this->isRootDir($path)) {

0 commit comments

Comments
 (0)