fix: fix null pointer dereference issue when parent task storage registration fails (#3458)

fix: fix null pointer dereference issue when parent task storage registration fails

Signed-off-by: yantingqiu <1173578083@qq.com>
This commit is contained in:
ytq 2024-08-26 10:50:43 +08:00 committed by GitHub
parent c7ea099d7b
commit b4493b2e75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -242,8 +242,8 @@ retry:
if parent != nil {
<-parent.storageRegistered
if !parent.storageRegisterSuccess {
parent = nil
logger.Warnf("parent peer task %s/%s register failed, fallback to non-sub peer task", parent.taskID, parent.peerID)
parent = nil
goto retry
}
}