fix leaking channel when closing connection

This commit is contained in:
Christian Schwarz 2017-08-09 21:03:05 +02:00
parent ca1a482e9e
commit 676ac41677

View File

@ -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