From 0872012cd95cd10053a60cfe3db8c00b65f9bf63 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 26 Jul 2021 13:11:01 -0400 Subject: [PATCH] small fix --- controller/DBMirrorSet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controller/DBMirrorSet.cpp b/controller/DBMirrorSet.cpp index 83998e3bc..f15d393c0 100644 --- a/controller/DBMirrorSet.cpp +++ b/controller/DBMirrorSet.cpp @@ -260,7 +260,9 @@ std::set< std::pair > DBMirrorSet::membersExpiringSoon() // Stop when we get to entries too far in the future. break; } else { - soon.insert(std::pair(nwid, memberId)); + const bool ssoEnabled = network["ssoEnabled"]; + if (ssoEnabled) + soon.insert(std::pair(nwid, memberId)); } } else { // Obsolete entry, no longer authorized, or SSO exempt.