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 ad95bc5  nmxact - Disable ble_xport on initial failure.
ad95bc5 is described below

commit ad95bc5415e11316144ead75f48c4110d3391635
Author: Christopher Collins <ccoll...@apache.org>
AuthorDate: Wed Sep 27 18:05:37 2017 -0700

    nmxact - Disable ble_xport on initial failure.
---
 nmxact/nmble/ble_xport.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/nmxact/nmble/ble_xport.go b/nmxact/nmble/ble_xport.go
index 6095b9b..ac84385 100644
--- a/nmxact/nmble/ble_xport.go
+++ b/nmxact/nmble/ble_xport.go
@@ -430,9 +430,12 @@ func (bx *BleXport) Start() error {
        }
 
        // Enqueue start event and block until it completes.  If this first 
attempt
-       // fails, abort the start procedure completely (don't entry the retry
+       // fails, abort the start procedure completely (don't enter the retry
        // loop).
        if err := <-startTask(); err != nil {
+               bx.mtx.Lock()
+               bx.enabled = false
+               bx.mtx.Unlock()
                return err
        }
 

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

Reply via email to