Skip to content

Commit

Permalink
fix for xavante stop behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kraynyukhov committed May 9, 2018
1 parent 1d7ea7d commit 46202fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/http/http.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ http["init"]=function()
webDir = "/tmp/test/";
end

http["mayRun"]=function()
http["mustStop"]=function()
print("test")
return must_stop()
end

Expand All @@ -36,7 +37,7 @@ http["run"]=function()
}
}

xavante.start(http.mayRun);
xavante.start(http.mustStop,1);
end


Expand Down

0 comments on commit 46202fe

Please # to comment.