We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21fceb7 commit 422af30Copy full SHA for 422af30
server/main.c
@@ -1287,7 +1287,7 @@ worker_thread(void *arg)
1287
/* listen for incoming requests on active NETCONF sessions */
1288
rc = nc_ps_poll(np2srv.nc_ps, 0, &ncs);
1289
1290
- if (rc & (NC_PSPOLL_NOSESSIONS | NC_PSPOLL_TIMEOUT | NC_PSPOLL_ERROR)) {
+ if ((rc & (NC_PSPOLL_NOSESSIONS | NC_PSPOLL_TIMEOUT | NC_PSPOLL_ERROR)) && !(rc & NC_PSPOLL_SESSION_TERM)) {
1291
/* if there is no active session, timeout, or an error, rest for a while */
1292
pthread_rwlock_unlock(&np2srv.ly_ctx_lock);
1293
np_sleep(10);
0 commit comments