diff options
author | Wim <wim@42.be> | 2022-04-12 00:30:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 00:30:21 +0200 |
commit | 281ef53e7de5d30114dbf57a4b506b2d8d2720cc (patch) | |
tree | 5fe13b85ffe312053452e0d7107ca4b174a412e0 /vendor/github.com/lrstanley/girc/client.go | |
parent | f044b948e257814e8e1f70d4b66821bfd9c2ff06 (diff) | |
download | matterbridge-msglm-281ef53e7de5d30114dbf57a4b506b2d8d2720cc.tar.gz matterbridge-msglm-281ef53e7de5d30114dbf57a4b506b2d8d2720cc.tar.bz2 matterbridge-msglm-281ef53e7de5d30114dbf57a4b506b2d8d2720cc.zip |
Update dependencies (#1800)
Diffstat (limited to 'vendor/github.com/lrstanley/girc/client.go')
-rw-r--r-- | vendor/github.com/lrstanley/girc/client.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vendor/github.com/lrstanley/girc/client.go b/vendor/github.com/lrstanley/girc/client.go index 3308b399..db6ec080 100644 --- a/vendor/github.com/lrstanley/girc/client.go +++ b/vendor/github.com/lrstanley/girc/client.go @@ -10,7 +10,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "log" "net" "os" @@ -268,7 +267,7 @@ func New(config Config) *Client { if envDebug { c.debug = log.New(os.Stderr, "debug:", log.Ltime|log.Lshortfile) } else { - c.debug = log.New(ioutil.Discard, "", 0) + c.debug = log.New(io.Discard, "", 0) } } else { if envDebug { @@ -411,7 +410,7 @@ func (c *Client) execLoop(ctx context.Context, errs chan error, wg *sync.WaitGro // Handles incoming ERROR responses. These are only ever sent // by the server (with the exception that this library may use // them as a lower level way of signalling to disconnect due - // to some other client-choosen error), and should always be + // to some other client-chosen error), and should always be // followed up by the server disconnecting the client. If for // some reason the server doesn't disconnect the client, or // if this library is the source of the error, this should @@ -446,7 +445,7 @@ func (c *Client) DisableTracking() { // Server returns the string representation of host+port pair for the connection. func (c *Client) Server() string { c.state.Lock() - defer c.state.Lock() + defer c.state.Unlock() return c.server() } |