summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/Trash/TrashManager.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Trash/TrashManager.php b/apps/files_trashbin/lib/Trash/TrashManager.php
index 50ab539c210..b81685efa25 100644
--- a/apps/files_trashbin/lib/Trash/TrashManager.php
+++ b/apps/files_trashbin/lib/Trash/TrashManager.php
@@ -99,7 +99,10 @@ class TrashManager implements ITrashManager {
}
try {
$backend = $this->getBackendForStorage($storage);
- return $backend->moveToTrash($storage, $internalPath);
+ $this->trashPaused = true;
+ $result = $backend->moveToTrash($storage, $internalPath);
+ $this->trashPaused = false;
+ return $result;
} catch (BackendNotFoundException $e) {
return false;
}