aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-08-05 17:39:12 +0200
committerRobin Appelman <robin@icewind.nl>2025-08-05 17:39:12 +0200
commit6f0120af165d780c22169b7b7320cae27d1dc8f0 (patch)
tree07d7f14bd0523fa109fdaa77382ee4c69ec7d48a
parenta4795a216c392973b27ed9bffa3e02bf62145ba6 (diff)
downloadnextcloud-server-smb-timeout-unavailable.tar.gz
nextcloud-server-smb-timeout-unavailable.zip
fix: handle smb timeouts as storage not availablesmb-timeout-unavailable
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 0899d2ac093..8f8750864e1 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -336,7 +336,7 @@ class SMB extends Common implements INotifyStorage {
if ($retry) {
return $this->stat($path, false);
} else {
- throw $e;
+ throw new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
}
}
if ($this->remoteIsShare() && $this->isRootDir($path)) {