diff --git a/library/src/main/java/com/owncloud/android/lib/common/OwnCloudClientManager.java b/library/src/main/java/com/owncloud/android/lib/common/OwnCloudClientManager.java index 3dec3dfb4..fcfa3ba00 100644 --- a/library/src/main/java/com/owncloud/android/lib/common/OwnCloudClientManager.java +++ b/library/src/main/java/com/owncloud/android/lib/common/OwnCloudClientManager.java @@ -267,6 +267,7 @@ public OwnCloudClient removeClientFor(OwnCloudAccount account) { String accountName = account.getName(); if (accountName != null) { client = mClientsWithKnownUsername.remove(accountName); + clientsNewWithKnownUsername.remove(accountName); if (client != null) { if (Log.isLoggable(TAG, Log.VERBOSE)) { Log_OC.v(TAG, "Removed client for account " + accountName);