Repository: incubator-mynewt-newtmgr Updated Branches: refs/heads/master d8f913e74 -> 8c1863838
nmxact - Error on connect failure A BLE session open attempt is supposed to retry when the first command (MTU exchange) fails due to supervision timeout. Instead, it was returning this error: "error starting ble session: Attempt to open an already-open BLE session (state=3)" Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/commit/97e9dfb9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/tree/97e9dfb9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/diff/97e9dfb9 Branch: refs/heads/master Commit: 97e9dfb9e411520badcc20de74de64f1ec8c21ca Parents: d8f913e Author: Christopher Collins <ccoll...@apache.org> Authored: Wed May 10 17:29:28 2017 -0700 Committer: Christopher Collins <ccoll...@apache.org> Committed: Wed May 10 17:29:28 2017 -0700 ---------------------------------------------------------------------- nmxact/nmble/ble_fsm.go | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/blob/97e9dfb9/nmxact/nmble/ble_fsm.go ---------------------------------------------------------------------- diff --git a/nmxact/nmble/ble_fsm.go b/nmxact/nmble/ble_fsm.go index 03d70f7..c79017e 100644 --- a/nmxact/nmble/ble_fsm.go +++ b/nmxact/nmble/ble_fsm.go @@ -789,6 +789,7 @@ func (bf *BleFsm) startOnce() (bool, error) { retry, err := bf.executeState() if err != nil { bf.errFunnel.Insert(err) + bf.errFunnel.BlockUntilExp() return retry, err } else if bf.getState() == SESN_STATE_DONE { return false, nil