diff --git a/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java b/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java index 0d6200bcc..fa6ac7729 100644 --- a/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java +++ b/tools/devserver/src/main/java/org/teavm/devserver/CodeServlet.java @@ -1084,7 +1084,7 @@ public class CodeServlet extends HttpServlet { end = 1000; break; } - phaseLimit = count; + phaseLimit = Math.max(1, count); return progressReached(0); }