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/05 19:26:57 UTC

[mynewt-newtmgr] branch master updated: nmxact - Complete sesn shutdown on failed open.

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 29e0161  nmxact - Complete sesn shutdown on failed open.
29e0161 is described below

commit 29e0161e3f600b2f8a926702783fb6088f40443b
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Thu Oct 5 12:26:34 2017 -0700

    nmxact - Complete sesn shutdown on failed open.
---
 nmxact/nmble/naked_sesn.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nmxact/nmble/naked_sesn.go b/nmxact/nmble/naked_sesn.go
index 08e418d..d2f4028 100644
--- a/nmxact/nmble/naked_sesn.go
+++ b/nmxact/nmble/naked_sesn.go
@@ -122,7 +122,7 @@ func (s *NakedSesn) shutdown(cause error) error {
 		s.mtx.Lock()
 		defer s.mtx.Unlock()
 
-		if s.shuttingDown || !s.enabled {
+		if s.shuttingDown || (!s.enabled && !s.opening) {
 			return nmxutil.NewSesnClosedError(
 				"Attempt to close an already-closed session")
 		}

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