Skip to content

Commit 23f13ff

Browse files
authored
Merge pull request #54296 from nextcloud/backport/54264/stable30
[stable30] fix: handle smb timeouts as storage not available
2 parents ae4fdef + fc585e0 commit 23f13ff

File tree

1 file changed

+1
-1
lines changed
  • apps/files_external/lib/Lib/Storage

1 file changed

+1
-1
lines changed

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)