From 29e1639101b093c5f66331b0f1385564c88db1c7 Mon Sep 17 00:00:00 2001 From: Nicolas PLANEL Date: Wed, 20 Mar 2019 14:14:10 +0100 Subject: fixup race on ch.reqChan git.fd.io/govpp.git/core/request_handler.go:37 git.fd.io/govpp.git/core/channel.go:188 Change-Id: I5be8be5e3ca105822ea4bb3b9690938634950d78 Signed-off-by: Nicolas PLANEL --- core/channel.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'core') diff --git a/core/channel.go b/core/channel.go index 6cb02f7..2e73917 100644 --- a/core/channel.go +++ b/core/channel.go @@ -184,10 +184,7 @@ func (ch *Channel) SetReplyTimeout(timeout time.Duration) { } func (ch *Channel) Close() { - if ch.reqChan != nil { - close(ch.reqChan) - ch.reqChan = nil - } + close(ch.reqChan) } func (req *requestCtx) ReceiveReply(msg api.Message) error { -- cgit 1.2.3-korg