add custom client disconnect timeout option, close #485

This commit is contained in:
ffdfgdfg
2020-05-07 23:29:45 +08:00
parent 6f1b32a152
commit f459acdfb4
15 changed files with 89 additions and 60 deletions

View File

@@ -107,7 +107,7 @@ func onclick(s, v, c string) {
if sp != s || vk != v || ct != c {
saveConfig(s, v, c)
}
cl = client.NewRPClient(s, v, c, "", nil)
cl = client.NewRPClient(s, v, c, "", nil, 60)
go cl.Start()
} else {
// close the npc