From 676ac416776a88f58c1f4ec185903975cd0e0646 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 9 Aug 2017 21:03:05 +0200 Subject: [PATCH] fix leaking channel when closing connection --- cmd/replication.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/replication.go b/cmd/replication.go index c48681f..2d3941e 100644 --- a/cmd/replication.go +++ b/cmd/replication.go @@ -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