mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-09 20:54:04 +00:00
Update dependencies and go1.18 (#1873)
* Update dependencies and go1.18 * Exclude unnecessary linters and update build to go1.18
This commit is contained in:
9
vendor/github.com/lrstanley/girc/README.md
generated
vendored
9
vendor/github.com/lrstanley/girc/README.md
generated
vendored
@ -1,6 +1,7 @@
|
||||
<p align="center"><a href="https://pkg.go.dev/github.com/lrstanley/girc"><img width="270" src="http://i.imgur.com/DEnyrdB.png"></a></p>
|
||||
<!-- template:begin:header -->
|
||||
<!-- do not edit anything in this "template" block, its auto-generated -->
|
||||
|
||||
<p align="center">girc -- :bomb: girc is a flexible IRC library for Go :ok_hand:</p>
|
||||
<p align="center">
|
||||
<a href="https://github.com/lrstanley/girc/tags">
|
||||
@ -46,13 +47,7 @@
|
||||
<!-- do not edit anything in this "template" block, its auto-generated -->
|
||||
## :link: Table of Contents
|
||||
|
||||
- [Features](#features)
|
||||
- [Installing](#installing)
|
||||
- [Examples](#examples)
|
||||
- [References](#references)
|
||||
- [Support & Assistance](#raising_hand_man-support--assistance)
|
||||
- [Contributing](#handshake-contributing)
|
||||
- [License](#balance_scale-license)
|
||||
- []()
|
||||
<!-- template:end:toc -->
|
||||
|
||||
## Features
|
||||
|
4
vendor/github.com/lrstanley/girc/conn.go
generated
vendored
4
vendor/github.com/lrstanley/girc/conn.go
generated
vendored
@ -588,6 +588,7 @@ func (c *Client) pingLoop(ctx context.Context, errs chan error, wg *sync.WaitGro
|
||||
|
||||
started := time.Now()
|
||||
past := false
|
||||
pingSent := false
|
||||
|
||||
for {
|
||||
select {
|
||||
@ -603,7 +604,7 @@ func (c *Client) pingLoop(ctx context.Context, errs chan error, wg *sync.WaitGro
|
||||
}
|
||||
|
||||
c.conn.mu.RLock()
|
||||
if time.Since(c.conn.lastPong) > c.Config.PingDelay+(60*time.Second) {
|
||||
if pingSent && time.Since(c.conn.lastPong) > c.Config.PingDelay+(60*time.Second) {
|
||||
// It's 60 seconds over what out ping delay is, connection
|
||||
// has probably dropped.
|
||||
err := ErrTimedOut{
|
||||
@ -625,6 +626,7 @@ func (c *Client) pingLoop(ctx context.Context, errs chan error, wg *sync.WaitGro
|
||||
c.conn.mu.Unlock()
|
||||
|
||||
c.Cmd.Ping(fmt.Sprintf("%d", time.Now().UnixNano()))
|
||||
pingSent = true
|
||||
case <-ctx.Done():
|
||||
wg.Done()
|
||||
return
|
||||
|
Reference in New Issue
Block a user