Skip to content

Commit ad19606

Browse files
Juha Heiskanennashif
authored andcommitted
net: lwm2m: Fix Possible Notification send blocker
If Notification build fail there was possible that Notification are blocked after failure. Signed-off-by: Juha Heiskanen <juha.heiskanen@nordicsemi.no> (cherry picked from commit 6dfa242c7d891b3458ab88df46b69b3a9621ee82)
1 parent e4ce689 commit ad19606

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

subsys/net/lib/lwm2m/lwm2m_engine.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5410,11 +5410,6 @@ static int generate_notify_message(struct lwm2m_ctx *ctx,
54105410
}
54115411

54125412
msg->operation = LWM2M_OP_READ;
5413-
5414-
obs->resource_update = false;
5415-
obs->active_tx_operation = true;
5416-
5417-
54185413
msg->type = COAP_TYPE_CON;
54195414
msg->code = COAP_RESPONSE_CODE_CONTENT;
54205415
msg->mid = coap_next_id();
@@ -5456,6 +5451,8 @@ static int generate_notify_message(struct lwm2m_ctx *ctx,
54565451
goto cleanup;
54575452
}
54585453

5454+
obs->active_tx_operation = true;
5455+
obs->resource_update = false;
54595456
lwm2m_information_interface_send(msg);
54605457

54615458
LOG_DBG("NOTIFY MSG: SENT");

0 commit comments

Comments
 (0)