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 2016/05/17 20:51:45 UTC
[22/50] [abbrv] incubator-mynewt-core git commit: bletiny - Another
delete connection bug fix!
bletiny - Another delete connection bug fix!
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/1c34cd52
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/1c34cd52
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/1c34cd52
Branch: refs/heads/master
Commit: 1c34cd527d1309ac81c752e49c817f629c7ba029
Parents: aeb1f54
Author: Christopher Collins <cc...@apache.org>
Authored: Wed May 11 16:17:55 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Wed May 11 16:17:55 2016 -0700
----------------------------------------------------------------------
apps/bletiny/src/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1c34cd52/apps/bletiny/src/main.c
----------------------------------------------------------------------
diff --git a/apps/bletiny/src/main.c b/apps/bletiny/src/main.c
index 2090554..02f08fa 100755
--- a/apps/bletiny/src/main.c
+++ b/apps/bletiny/src/main.c
@@ -413,8 +413,6 @@ bletiny_conn_delete_idx(int idx)
os_memblock_put(&bletiny_svc_pool, svc);
}
- bletiny_num_conns--;
-
/* This '#if' is not strictly necessary. It is here to prevent a spurious
* warning from being reported.
*/
@@ -424,6 +422,8 @@ bletiny_conn_delete_idx(int idx)
bletiny_conns[i - 1] = bletiny_conns[i];
}
#endif
+
+ bletiny_num_conns--;
}
static struct bletiny_svc *