~emersion/soju

ref: ce19f76673b5bfd369766f6696e042b0a8df7691 soju/net_go113.go -rw-r--r-- 200 bytes
ce19f766Simon Ser database/postgres: fix inverted networkID check in ListWebPushSubscriptions 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
//go:build !go1.16
// +build !go1.16

package soju

import (
	"strings"
)

func isErrClosed(err error) bool {
	return err != nil && strings.Contains(err.Error(), "use of closed network connection")
}