diff options
| author | Ricardo Catalinas Jiménez <r@untroubled.be> | 2023-02-05 23:38:56 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-05 19:38:56 -0400 |
| commit | 45780139f287331b572fe99f5986a795d2eef87a (patch) | |
| tree | 908505d3e3206e30882bdbd67430d5bc5e8b63ec /src | |
| parent | b6d26238fc4095e00656a1bc4f8ab780af3cb878 (diff) | |
| download | nng-45780139f287331b572fe99f5986a795d2eef87a.tar.gz nng-45780139f287331b572fe99f5986a795d2eef87a.tar.bz2 nng-45780139f287331b572fe99f5986a795d2eef87a.zip | |
Fix PAIR v0 not finalizing the pollables when closing socket (#1640)
This function needs to be pretty much identical between PAIR v0 and
v1, it was missing just the call to release the pollable resources.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp/protocol/pair0/pair.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp/protocol/pair0/pair.c b/src/sp/protocol/pair0/pair.c index 4abeb16a..e272fd2e 100644 --- a/src/sp/protocol/pair0/pair.c +++ b/src/sp/protocol/pair0/pair.c @@ -80,6 +80,8 @@ pair0_sock_fini(void *arg) nni_lmq_fini(&s->rmq); nni_lmq_fini(&s->wmq); + nni_pollable_fini(&s->writable); + nni_pollable_fini(&s->readable); nni_mtx_fini(&s->mtx); } |
