mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-03 03:10:26 -05:00
don't leak a go routine in the error case
This commit is contained in:
@@ -305,12 +305,10 @@ func (p *Puller) Pull(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ae.IsSet() {
|
||||
return ae.Get()
|
||||
}
|
||||
|
||||
if p.wr.Size() > 0 {
|
||||
completedTables <- FilledWriters{p.wr}
|
||||
if !ae.IsSet() {
|
||||
if p.wr.Size() > 0 {
|
||||
completedTables <- FilledWriters{p.wr}
|
||||
}
|
||||
}
|
||||
|
||||
close(completedTables)
|
||||
|
||||
Reference in New Issue
Block a user