Skip to content

Commit 1032c54

Browse files
committed
Ensure transport reopen task takes account of new error.
1 parent f184d87 commit 1032c54

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/net/session.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ _z_fut_fn_result_t _z_client_reopen_task_fn(void *ztc_arg, _z_executor_t *execut
557557
_z_session_transport_mutex_unlock(s);
558558
if (ret != _Z_RES_OK) {
559559
if (ret == _Z_ERR_TRANSPORT_OPEN_FAILED || ret == _Z_ERR_SCOUT_NO_RESULTS ||
560-
ret == _Z_ERR_TRANSPORT_TX_FAILED || ret == _Z_ERR_TRANSPORT_RX_FAILED) {
560+
ret == _Z_ERR_TRANSPORT_TX_FAILED || ret == _Z_ERR_TRANSPORT_RX_FAILED ||
561+
ret == _Z_ERR_TRANSPORT_OPEN_PARTIAL_CONNECTIVITY) {
561562
_Z_DEBUG("Reopen failed, next try in 1s");
562563
tc->_session = _z_session_rc_clone_as_weak(&zs);
563564
tc->_state = _Z_TRANSPORT_STATE_RECONNECTING;

0 commit comments

Comments
 (0)