浏览代码

small fix

Adam Ierymenko 4 年之前
父节点
当前提交
0872012cd9
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      controller/DBMirrorSet.cpp

+ 3 - 1
controller/DBMirrorSet.cpp

@@ -260,7 +260,9 @@ std::set< std::pair<uint64_t, uint64_t> > DBMirrorSet::membersExpiringSoon()
 							// Stop when we get to entries too far in the future.
 							// Stop when we get to entries too far in the future.
 							break;
 							break;
 						} else {
 						} else {
-							soon.insert(std::pair<uint64_t, uint64_t>(nwid, memberId));
+							const bool ssoEnabled = network["ssoEnabled"];
+							if (ssoEnabled)
+								soon.insert(std::pair<uint64_t, uint64_t>(nwid, memberId));
 						}
 						}
 					} else {
 					} else {
 						// Obsolete entry, no longer authorized, or SSO exempt.
 						// Obsolete entry, no longer authorized, or SSO exempt.