1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-01-14 23:24:11 +08:00
parent 4d117d1bbf
commit e89e120523
2 changed files with 3 additions and 6 deletions

View File

@ -61,7 +61,7 @@ func _dream_start(m *ice.Message, name string) {
m.Info("already exists %v", pid)
return
}
for i := 0; i < 10; i++ {
for i := 0; i < 3; i++ {
if m.Cmd(SPACE, name).Length() > 0 {
m.Info("already exists %v", name)
return

View File

@ -44,11 +44,8 @@ func _space_dial(m *ice.Message, dev, name string, arg ...string) {
if c, e := websocket.NewClient(c, u); !m.Warn(e, tcp.DIAL, dev, SPACE, u.String()) {
defer mdb.HashCreateDeferRemove(m, kit.SimpleKV("", MASTER, dev, origin), kit.Dict(mdb.TARGET, c))()
kit.If(ice.Info.Colors, func() { once.Do(func() { m.Go(func() { _space_qrcode(m, dev) }) }) })
if _space_handle(m.Spawn(), true, dev, c); mdb.HashSelect(m, mdb.NAME, dev).Length() == 0 {
i = _c
} else {
i = 0
}
_space_handle(m.Spawn(), true, dev, c)
i = 0
}
}).Cost(mdb.COUNT, i, mdb.NEXT, next, tcp.DIAL, dev, LINK, u.String()).Sleep(next)
}