[njs] Stream: fixed s.off().
Dmitry Volyntsev
xeioex at nginx.com
Thu Oct 4 17:55:05 UTC 2018
details: http://hg.nginx.org/njs/rev/2383666ab775
branches:
changeset: 620:2383666ab775
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Thu Oct 04 20:43:25 2018 +0300
description:
Stream: fixed s.off().
Previously, s.off() did not delete the event in njs vm
using njs_vm_del_event().
diffstat:
nginx/ngx_stream_js_module.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r b769c1037a57 -r 2383666ab775 nginx/ngx_stream_js_module.c
--- a/nginx/ngx_stream_js_module.c Wed Oct 03 15:38:19 2018 +0300
+++ b/nginx/ngx_stream_js_module.c Thu Oct 04 20:43:25 2018 +0300
@@ -1081,6 +1081,8 @@ ngx_stream_js_ext_off(njs_vm_t *vm, njs_
return NJS_ERROR;
}
+ njs_vm_del_event(vm, *event);
+
*event = NULL;
return NJS_OK;
More information about the nginx-devel
mailing list