Skip to content

Commit

Permalink
Need to verify the groupInfo.totalMembers for isReady check
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhaixian1984 committed Jul 8, 2024
1 parent ece71c4 commit b106018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/pull-scheduler-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async function handlePulling(

async function isReady(context: AppContext, logger: Logger): Promise<boolean> {
const { config, sworkerApi } = context;
if (!context.groupInfo) {
if (!context.groupInfo || context.groupInfo.totalMembers === 0) {
logger.info('group info not loaded, skip this round');
return false;
}
Expand Down

0 comments on commit b106018

Please sign in to comment.