fix: agent stuck in init()
This commit is contained in:
parent
027d31473c
commit
6d50531f57
@ -33,6 +33,7 @@ func init() {
|
|||||||
|
|
||||||
var dialer = websocket.DefaultDialer
|
var dialer = websocket.DefaultDialer
|
||||||
|
|
||||||
|
go func() {
|
||||||
// 永不退出,出错后统一操作为:延时 + conitnue
|
// 永不退出,出错后统一操作为:延时 + conitnue
|
||||||
for {
|
for {
|
||||||
// 获取进程元信息用于注册
|
// 获取进程元信息用于注册
|
||||||
@ -68,6 +69,7 @@ func init() {
|
|||||||
time.Sleep(waitDelay)
|
time.Sleep(waitDelay)
|
||||||
log.Printf("[goc][Error] connection to goc server broken", )
|
log.Printf("[goc][Error] connection to goc server broken", )
|
||||||
}
|
}
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
// rpc
|
// rpc
|
||||||
|
Loading…
Reference in New Issue
Block a user