Browse Source

Reduce connection timeout to a more sensible number

tags/v0.4.2
Russ Garrett 5 years ago
parent
commit
e36a4a5581
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      irc.go

+ 2
- 0
irc.go View File

@@ -6,6 +6,7 @@ import (
6 6
 	"github.com/irccloud/go-ircevent"
7 7
 	"github.com/spf13/viper"
8 8
 	"strings"
9
+	"time"
9 10
 )
10 11
 
11 12
 func (i *IRCCat) connectIRC(debug bool) error {
@@ -13,6 +14,7 @@ func (i *IRCCat) connectIRC(debug bool) error {
13 14
 	i.irc = irccon
14 15
 
15 16
 	irccon.Debug = debug
17
+	irccon.Timeout = time.Second * 15
16 18
 	irccon.RequestCaps = []string{"away-notify", "account-notify", "draft/message-tags-0.2"}
17 19
 	irccon.UseTLS = viper.GetBool("irc.tls")
18 20
 

Loading…
Cancel
Save