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/21 20:46:36 UTC

[mynewt-newtmgr] 01/02: nmxact - BLE session was being removed too early.

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 451f2be0beba4afecfce08a95d5f429548f6f56e
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Mon Aug 21 13:41:56 2017 -0700

    nmxact - BLE session was being removed too early.
---
 nmxact/nmble/ble_sesn.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nmxact/nmble/ble_sesn.go b/nmxact/nmble/ble_sesn.go
index 33098bc..3138f39 100644
--- a/nmxact/nmble/ble_sesn.go
+++ b/nmxact/nmble/ble_sesn.go
@@ -92,12 +92,12 @@ func (s *BleSesn) disconnectListen() {
 		// If the session is being closed, unblock the close() call.
 		defer s.closeBlocker.Unblock(nil)
 
-		s.bx.removeSesn(s.conn.connHandle)
-
 		// Block until disconnect.
 		err := <-s.conn.DisconnectChan()
 		nmxutil.Assert(!s.IsOpen())
 
+		s.bx.removeSesn(s.conn.connHandle)
+
 		// Signal error to all listeners.
 		s.txvr.ErrorAll(err)
 		s.txvr.Stop()

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