summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikoĊ‚aj Walczak <mikiwalczak+github@gmail.com>2018-07-13 11:37:14 +0100
committerinsomniac <insomniacslk@users.noreply.github.com>2018-07-13 11:37:14 +0100
commit1a0dca7b99b8e48208f7b130ee78c7c588558147 (patch)
treeb7263abc78e8dd8156f8d6ac9971e7a2837f6388
parent8e3bcdab237624421034ccc4eb16f260d4338aec (diff)
Make Future buffered to avoid concurrency issues (#84)
-rw-r--r--dhcpv6/future.go2
1 files changed, 1 insertions, 1 deletions
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