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:
parent
c7ea099d7b
commit
b4493b2e75
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue