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/08/24 02:30:47 UTC

[mynewt-newtmgr] 01/02: nmxact - Prevent hang on listener multi-close.

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

commit d3011fb4c2e029dc6d9026064ac07d5a221724e5
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Wed Aug 23 19:28:47 2017 -0700

    nmxact - Prevent hang on listener multi-close.
---
 nmxact/nmble/listen.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nmxact/nmble/listen.go b/nmxact/nmble/listen.go
index fe8ee61..e1b35b6 100644
--- a/nmxact/nmble/listen.go
+++ b/nmxact/nmble/listen.go
@@ -83,6 +83,7 @@ func (bl *Listener) Close() {
 	// time.
 	if t := bl.timer; t != nil {
 		nmxutil.StopAndDrainTimer(t)
+		bl.timer = nil
 	}
 
 	// Mark the command as acked in case the race condition mentioned above

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" <co...@mynewt.apache.org>.