Skip to content

Commit b219745

Browse files
doki-nordiclstnl
authored andcommitted
Fix infinite unbound
1 parent 0e1e42b commit b219745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/ipc/ipc_service/lib/icmsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static bool mbox_callback_process(struct icmsg_data_t *dev_data)
259259
remote_sid_req = REMOTE_SID_REQ_FROM_TX(pbuf_handshake_read(dev_data->tx_pb));
260260

261261
if (remote_sid_req != dev_data->remote_session) {
262-
atomic_set(&dev_data->state, ICMSG_STATE_CONNECTED_SID_ENABLED);
262+
atomic_set(&dev_data->state, ICMSG_STATE_DISCONNECTED);
263263
if (dev_data->cb->unbound) {
264264
dev_data->cb->unbound(dev_data->ctx);
265265
}

0 commit comments

Comments
 (0)