From 39004c2b7bee04d12694df55fd9be92d9a09a275 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 13 Apr 2016 22:43:33 +0200 Subject: Fixes a possible infinite change-dir-loop Those can occure when browsing in a mount that got unavailable --- apps/files/js/filelist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index ee2f85c546a..00cfaf53013 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1371,7 +1371,8 @@ // if the error is not related to folder we're trying to load, reload the page to handle logout etc if (result.data.error === 'authentication_error' || result.data.error === 'token_expired' || - result.data.error === 'application_not_enabled' + result.data.error === 'application_not_enabled' || + result.data.exception === '\\OCP\\Files\\StorageNotAvailableException' ) { OC.redirect(OC.generateUrl('apps/files')); } -- cgit v1.2.3