Skip to content

Commit b93b41b

Browse files
committed
client session BUGFIX always allow receiving notifications
Refs CESNET/netopeer2#842
1 parent 3da9b34 commit b93b41b

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/session_client.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,12 +1495,6 @@ get_msg(struct nc_session *session, int timeout, uint64_t msgid, struct lyxml_el
14951495

14961496
/* we read notif, want a rpc-reply */
14971497
if (msgid && (msgtype == NC_MSG_NOTIF)) {
1498-
if (!ATOMIC_LOAD(session->opts.client.ntf_tid)) {
1499-
ERR("Session %u: received a <notification> but session is not subscribed.", session->id);
1500-
lyxml_free(session->ctx, xml);
1501-
return NC_MSG_ERROR;
1502-
}
1503-
15041498
cont_ptr = &session->opts.client.notifs;
15051499
while (*cont_ptr) {
15061500
cont_ptr = &((*cont_ptr)->next);

0 commit comments

Comments
 (0)