diff --git a/internal/pool/pool.go b/internal/pool/pool.go index 06703ea..5c3ed47 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -88,6 +88,9 @@ func (p *pool) Default(ctx context.Context) *tg.Client { } func (p *pool) Close() (err error) { - return p.close() + if p.close != nil { + return p.close() + } + return nil }