You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2019/01/15 18:18:29 UTC

[mynewt-nimble] branch master updated: mesh/proxy: Fix connection handle when disconnected

This is an automated email from the ASF dual-hosted git repository.

rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 66850c8  mesh/proxy: Fix connection handle when disconnected
66850c8 is described below

commit 66850c85fa5d84216a36bbec7d4192250bd9a95c
Author: freddie <fr...@139.com>
AuthorDate: Sat Jan 12 12:00:03 2019 +0800

    mesh/proxy: Fix connection handle when disconnected
---
 nimble/host/mesh/src/proxy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nimble/host/mesh/src/proxy.c b/nimble/host/mesh/src/proxy.c
index 46e1ce9..a31e199 100644
--- a/nimble/host/mesh/src/proxy.c
+++ b/nimble/host/mesh/src/proxy.c
@@ -641,7 +641,7 @@ static void proxy_disconnected(uint16_t conn_handle, int reason)
 				bt_mesh_pb_gatt_close(conn_handle);
 			}
 
-			client->conn_handle = 0;
+			client->conn_handle = BLE_HS_CONN_HANDLE_NONE;
 			break;
 		}
 	}