mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
ringdht: missing upnp nullptr check
Another one... Change-Id: I0394e1292dc0c05431203af9911567697c44147d Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
This commit is contained in:

committed by
Adrien Béraud

parent
6d7c5f966e
commit
2b6f3b0796
@ -2555,9 +2555,10 @@ RingAccount::doUnregister(std::function<void(bool)> released_cb)
|
||||
pendingSipCalls_.clear();
|
||||
}
|
||||
|
||||
/* RING_DBG("UPnP: removing port mapping for DHT account."); */
|
||||
upnp_->setIGDListener();
|
||||
upnp_->removeMappings();
|
||||
if (upnp_) {
|
||||
upnp_->setIGDListener();
|
||||
upnp_->removeMappings();
|
||||
}
|
||||
|
||||
Manager::instance().unregisterEventHandler((uintptr_t)this);
|
||||
saveNodes(dht_.exportNodes());
|
||||
|
Reference in New Issue
Block a user