Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Apr 18, 2020
1 parent e8a4b5e commit ecd4e9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yaf_dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,19 +785,19 @@ ZEND_HOT yaf_response_t *yaf_dispatcher_dispatch(yaf_dispatcher_object *dispatch
}
/* yaf_dispatcher_fix_default(dispatcher, request); */
YAF_PLUGIN_HANDLE(dispatcher, plugins, YAF_PLUGIN_HOOK_POSTDISPATCH);
} while (--nesting > 0 && !yaf_request_is_dispatched(request));
} while (!yaf_request_is_dispatched(request) && --nesting > 0);

YAF_PLUGIN_HANDLE(dispatcher, plugins, YAF_PLUGIN_HOOK_LOOPSHUTDOWN);

if (EXPECTED(nesting != 0)) {
if (EXPECTED(yaf_request_is_dispatched(request))) {
if (!(YAF_DISPATCHER_FLAGS(dispatcher) & YAF_DISPATCHER_RETURN_RESPONSE)) {
yaf_response_response(&dispatcher->response);

yaf_response_clear_body(Z_YAFRESPONSEOBJ(dispatcher->response), NULL);
}
return &dispatcher->response;
} else {
ZEND_ASSERT(!yaf_request_is_dispatched(request));
ZEND_ASSERT(nesting == 0);
yaf_trigger_error(YAF_ERR_DISPATCH_FAILED, "The maximum dispatching count %ld is reached", yaf_get_forward_limit());
YAF_EXCEPTION_HANDLE_NORET(dispatcher);
return NULL;
Expand Down

0 comments on commit ecd4e9e

Please sign in to comment.