andrzej-kaczmarek commented on a change in pull request #857:
URL: https://github.com/apache/mynewt-nimble/pull/857#discussion_r481367440



##########
File path: nimble/host/src/ble_hs_conn.c
##########
@@ -552,7 +554,7 @@ ble_hs_conn_timer(void)
      */
     if (conn_handle != BLE_HS_CONN_HANDLE_NONE) {
         ble_gap_terminate(conn_handle, BLE_ERR_REM_USER_CONN_TERM);
-        return ble_hs_conn_timer();
+        goto again;

Review comment:
       you need to update comment as well
   and `while` or `do {} while` would be nicer than `goto`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to