From 9b9d784a8231a23c22251fba0f81b538cd78331a Mon Sep 17 00:00:00 2001 From: Anjani Kumar Date: Thu, 18 Mar 2021 02:09:23 +0530 Subject: [PATCH] Prevent EventType::Unsupported type events to be saved in db, avoiding exceptions --- src/Cache_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache_p.h b/src/Cache_p.h index 473c6319..3454cd54 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h @@ -381,7 +381,7 @@ private: std::visit( [&txn, &statesdb](auto e) { - if constexpr (isStateEvent(e)) + if (isStateEvent(e) && e.type != EventType::Unsupported) statesdb.put(txn, to_string(e.type), json(e).dump()); }, event);