fix: delete device when encountering 404
authorKyle Fuller <redacted>
Sun, 30 May 2021 21:21:34 +0000 (22:21 +0100)
committerKyle Fuller <redacted>
Sun, 30 May 2021 21:21:34 +0000 (22:21 +0100)
palaver.cpp

index 55287ab3e6b1b5fdafb428e291c501d82395e6b4..7bf6972a38b0dca10a802e02cdc3a3dd74c8cdf7 100644 (file)
@@ -1322,7 +1322,7 @@ private:
 };
 
 void PLVHTTPNotificationSocket::HandleStatusCode(unsigned int status) {
-       if (status == 401) {
+       if (status == 401 || status == 404) {
                if (CPalaverMod *pModule = dynamic_cast<CPalaverMod *>(m_pModule)) {
                        DEBUG("palaver: Removing device");
                        pModule->RemoveDeviceWithIdentifier(m_sIdentifier);
git clone https://git.99rst.org/PROJECT