diff --git a/turms-server-common/src/main/java/im/turms/server/common/domain/admin/service/BaseAdminService.java b/turms-server-common/src/main/java/im/turms/server/common/domain/admin/service/BaseAdminService.java index 7bee63418b..5d8f2dd22d 100644 --- a/turms-server-common/src/main/java/im/turms/server/common/domain/admin/service/BaseAdminService.java +++ b/turms-server-common/src/main/java/im/turms/server/common/domain/admin/service/BaseAdminService.java @@ -82,7 +82,7 @@ protected void loadAndListenAdmins() { for (Admin admin : admins) { if (admin.getRoleIds() .contains(ADMIN_ROLE_ROOT_ID)) { - break; + return Mono.empty(); } } return addRootAdmin().onErrorMap(t -> new RuntimeException(