fix: inactive 路径不重启 gateway,修复 PIN 不闪问题
removeProviderByName 中移除 restartGateway() 调用。 原因:inactive 时 kill openclaw-gateway 会破坏 vfdservice (gateway 的子进程或共享 VFD 管道的进程),导致后续 showPin 写管道失败或被 gateway 重启后的时钟命令覆盖,数码管无法显示 PIN 闪烁。 inactive 期间设备 frp 隧道已断开,无人访问 gateway,无需立即 重启。下次 active 时 applyFullProviderFromVps 会写完整 provider config 并重启 gateway。 Made-with: Cursor
This commit is contained in:
@@ -161,7 +161,9 @@ function removeProviderByName(providerId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.info('openclaw-provider', `provider 已移除: ${providerId}`);
|
log.info('openclaw-provider', `provider 已移除: ${providerId}`);
|
||||||
restartGateway();
|
// 注意:此处不重启 gateway。inactive 期间 frp 隧道已断开,无人访问 gateway;
|
||||||
|
// 下次 active 时 applyFullProviderFromVps 会写完整 config 并重启。
|
||||||
|
// 若在此处 kill gateway,会破坏 vfdservice 管道,导致 PIN 码无法在数码管上闪烁。
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeProviderFromConfig(config, providerId) {
|
function removeProviderFromConfig(config, providerId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user