From: Kyle Fuller Date: Sun, 30 May 2021 21:21:34 +0000 (+0100) Subject: fix: delete device when encountering 404 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e3aafa46eb62ec2b45b9c1ce6c7bdd7a71518d07;p=znc-palaver.git fix: delete device when encountering 404 --- diff --git a/palaver.cpp b/palaver.cpp index 55287ab..7bf6972 100644 --- a/palaver.cpp +++ b/palaver.cpp @@ -1322,7 +1322,7 @@ private: }; void PLVHTTPNotificationSocket::HandleStatusCode(unsigned int status) { - if (status == 401) { + if (status == 401 || status == 404) { if (CPalaverMod *pModule = dynamic_cast(m_pModule)) { DEBUG("palaver: Removing device"); pModule->RemoveDeviceWithIdentifier(m_sIdentifier);