From 7bb6d11c73c4566538e8cc85ddc044472d77d125 Mon Sep 17 00:00:00 2001
From: Nicolas Jager <nicolas.jager@savoirfairelinux.com>
Date: Fri, 2 Dec 2016 16:33:06 -0500
Subject: [PATCH] Dht : add errors states

Change-Id: I572e724ab64dc0a995aeaec6b040b55548fdb081
Tuleap: #790
---
 RingD.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/RingD.cpp b/RingD.cpp
index 4d5ff8a..9edcdaa 100644
--- a/RingD.cpp
+++ b/RingD.cpp
@@ -526,7 +526,16 @@ RingD::registerCallbacks()
                     }*/
                 }));
             }
-            else if (state == DRing::Account::States::ERROR_GENERIC) {
+            else if (state == DRing::Account::States::ERROR_GENERIC
+                     || state == DRing::Account::States::ERROR_AUTH
+                     || state == DRing::Account::States::ERROR_NETWORK
+                     || state == DRing::Account::States::ERROR_HOST
+                     || state == DRing::Account::States::ERROR_CONF_STUN
+                     || state == DRing::Account::States::ERROR_EXIST_STUN
+                     || state == DRing::Account::States::ERROR_SERVICE_UNAVAILABLE
+                     || state == DRing::Account::States::ERROR_NOT_ACCEPTABLE
+                     || state == DRing::Account::States::ERROR_NEED_MIGRATION
+                     || state == DRing::Account::States::REQUEST_TIMEOUT) {
                 CoreApplication::MainView->CoreWindow->Dispatcher->RunAsync(CoreDispatcherPriority::High,
                 ref new DispatchedHandler([=]() {
                     reloadAccountList();
-- 
GitLab