Cocos 3.10 setNotificationNode() 直接关闭窗口提示Node still marked as running on node destruction

local node = display.newLayer()
node:registerScriptTouchHandler(
function() print(“111111111111”)
end, false, 0, false)
node:setTouchEnabled(true)
cc.Director:getInstance():setNotificationNode(node)
直接加载了一个layer
在调用setNotificationNode之后,直接关闭窗口,会报如下错误.
Assert failed: Node still marked as running on node destruction! Was base class onExit() called in derived class onExit() implementations?

还是自己解决吧

在Director::reset()
里添加
if (_notificationNode) {
_notificationNode->onExitTransitionDidStart();
_notificationNode->onExit();
_notificationNode->cleanup();
}