Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit fab47de

Browse files
author
icymind
committed
adjust ssh handshake timeout to 10s
1 parent 1692c8f commit fab47de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/lib/openwrt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Openwrt {
2020
* @param {int} timeout 连接前的等待时间(毫秒)
2121
* @return {promise} 当连接成功后resovle
2222
*/
23-
connect (heartbeat = 0, timeout = 5000) {
23+
connect (heartbeat = 0, timeout = 10000) {
2424
this.conn = new Client()
2525
return new Promise((resolve, reject) => {
2626
this.conn.on('ready', () => {

0 commit comments

Comments
 (0)