mirror of
https://github.com/ehang-io/nps.git
synced 2026-10-31 16:52:12 +08:00
add custom client disconnect timeout option, close #485
This commit is contained in:
1 parent
6f1b32a152
commit
f459acdfb4
15 files changed
+89
-60
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user