From 9e53aa4f7b4a5c9b4b4bf4c0eb3c19c775438fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Thu, 30 Jan 2020 15:27:37 -0500 Subject: [PATCH] upnp: connectivityChanged if not running Change-Id: I3e4b9850b96c5bd2b312e1a89beceeab8ff0a59a --- src/jamidht/jamiaccount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp index c2a61b7971..48d1c42051 100644 --- a/src/jamidht/jamiaccount.cpp +++ b/src/jamidht/jamiaccount.cpp @@ -1493,7 +1493,7 @@ JamiAccount::registerAsyncOps() auto oldPort = static_cast<in_port_t>(dhtPortUsed_); auto newPort = success ? port_used : dhtPort_; if (*update) { - if (oldPort != newPort) { + if (oldPort != newPort or not dht_->isRunning()) { JAMI_WARN("[Account %s] DHT port changed to %u: restarting network", getAccountID().c_str(), newPort); dht_->connectivityChanged(); } -- GitLab