mirror of
https://github.com/ehang-io/nps.git
synced 2025-08-31 17:56:56 +00:00
add custom client disconnect timeout option, close #485
This commit is contained in:
@@ -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