You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2017/10/06 23:34:59 UTC
[mynewt-newtmgr] branch master updated: nmxact - NotifyListener
ErrChan: buffer size 1.
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git
The following commit(s) were added to refs/heads/master by this push:
new edd4d6b nmxact - NotifyListener ErrChan: buffer size 1.
edd4d6b is described below
commit edd4d6b7af0aac9758d63778d95735869c0154ae
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Fri Oct 6 16:30:23 2017 -0700
nmxact - NotifyListener ErrChan: buffer size 1.
The Conn object pushes at most one error into this channel. The buffer
is used to prevent deadlock in case the client Goroutine stops
listening.
---
nmxact/nmble/conn.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nmxact/nmble/conn.go b/nmxact/nmble/conn.go
index dc8fed6..03f73b4 100644
--- a/nmxact/nmble/conn.go
+++ b/nmxact/nmble/conn.go
@@ -45,7 +45,7 @@ type NotifyListener struct {
func NewNotifyListener() *NotifyListener {
return &NotifyListener{
NotifyChan: make(chan Notification),
- ErrChan: make(chan error),
+ ErrChan: make(chan error, 1),
}
}
--
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" <co...@mynewt.apache.org>'].