bug: fix picoToken is empty when gateway started by launcher (#2241)

This commit is contained in:
Cytown authored and GitHub committed 2026-04-01 14:59:18 +08:00
1 parent f327859cce
commit a9c76eca21
4 files changed
+21 -29

No files matched your search

+1
View File
@@ -149,6 +149,7 @@ func Run(debug bool, homePath, configPath string, allowEmptyStartup bool) error
// Enforce singleton: write PID file with generated token.
pidData, err := pid.WritePidFile(homePath, cfg.Gateway.Host, cfg.Gateway.Port)
if err != nil {
logger.Warnf("write pid file failed: %v", err)
return fmt.Errorf("singleton check failed: %w", err)
}
defer pid.RemovePidFile(homePath)