mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-05 16:14:02 +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:
6
vendor/github.com/google/gops/agent/agent.go
generated
vendored
6
vendor/github.com/google/gops/agent/agent.go
generated
vendored
@ -120,14 +120,14 @@ func Listen(opts Options) error {
|
||||
return err
|
||||
}
|
||||
|
||||
go listen()
|
||||
go listen(listener)
|
||||
return nil
|
||||
}
|
||||
|
||||
func listen() {
|
||||
func listen(l net.Listener) {
|
||||
buf := make([]byte, 1)
|
||||
for {
|
||||
fd, err := listener.Accept()
|
||||
fd, err := l.Accept()
|
||||
if err != nil {
|
||||
// No great way to check for this, see https://golang.org/issues/4373.
|
||||
if !strings.Contains(err.Error(), "use of closed network connection") {
|
||||
|
Reference in New Issue
Block a user