Skip to content

Commit a7b0767

Browse files
committed
Fixed compiling sync version.
1 parent ffe030b commit a7b0767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngx_python.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,13 +882,13 @@ ngx_python_init_conf(ngx_cycle_t *cycle, void *conf)
882882
static ngx_int_t
883883
ngx_python_init_worker(ngx_cycle_t *cycle)
884884
{
885+
#if !(NGX_PYTHON_SYNC)
886+
885887
ngx_python_conf_t *pcf;
886888

887889
pcf = (ngx_python_conf_t *) ngx_get_conf(cycle->conf_ctx,
888890
ngx_python_module);
889891

890-
#if !(NGX_PYTHON_SYNC)
891-
892892
if (pcf->ns) {
893893
if (ngx_python_sleep_install(cycle) != NGX_OK) {
894894
return NGX_ERROR;

0 commit comments

Comments
 (0)