From 1a0dca7b99b8e48208f7b130ee78c7c588558147 Mon Sep 17 00:00:00 2001 From: MikoĊ‚aj Walczak Date: Fri, 13 Jul 2018 11:37:14 +0100 Subject: Make Future buffered to avoid concurrency issues (#84) --- dhcpv6/future.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcpv6/future.go b/dhcpv6/future.go index b431419..d0ae6cd 100644 --- a/dhcpv6/future.go +++ b/dhcpv6/future.go @@ -35,7 +35,7 @@ func (r *response) Error() error { // NewFuture creates a new future, which can be written to func NewFuture() chan Response { - return make(chan Response) + return make(chan Response, 1) } // NewResponse creates a new future response -- cgit v1.2.3