mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
fix leaking channel when closing connection
This commit is contained in:
parent
ca1a482e9e
commit
676ac41677
@ -218,6 +218,7 @@ func closeRPCWithTimeout(log Logger, remote rpc.RPCRequester, timeout time.Durat
|
||||
ch := make(chan error)
|
||||
go func() {
|
||||
ch <- remote.CloseRequest(rpc.CloseRequest{goodbye})
|
||||
close(ch)
|
||||
}()
|
||||
|
||||
var err error
|
||||
|
Loading…
Reference in New Issue
Block a user