]> git.kaiwu.me - njs.git/commit
Fixed njs_vm_handle_events().
authorAlexander Borisov <alexander.borisov@nginx.com>
Thu, 26 Dec 2019 12:31:54 +0000 (15:31 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Thu, 26 Dec 2019 12:31:54 +0000 (15:31 +0300)
commit166ec03f0f7e43e966eece8f8f8f44c8d8b0ff09
tree64e0c0ac6b224ebeaa9fdabad85ca290043d3cba
parent22de386ca4dd8c83d87e1e2a08f53d0dfe313c64
Fixed njs_vm_handle_events().

Fixed typo introduced in 61bf7a31e685. Event loop is expected to process two
queues: posted events and promise events according to the spec. The "do while"
loop was introduced to handle possible promise events which may appear as
a result of posted events processing. The loop termination condition should
check for emptyness of promise events queue, because posted events can only be
created outside the loop (externally).
src/njs_vm.c