Commits

Shlomi Fish committed 6e14b55

Bug fix: resepct iterations count exceeding.

Comments (0)

Files changed (1)

fc-solve/site/wml/src/js/web-fc-solve-ui.js

         has: {
             _instance: { is: rw },
             _solve_err_code: { is: rw },
+            _was_iterations_count_exceeded: { is: rw, init: false },
         },
         methods: {
             _process_pristine_output: function(text) {
                 ctl.html(escapeHtml(mylabel));
 
                 if (myclass == "exceeded") {
+                    that._was_iterations_count_exceeded = true;
                     that._re_enable_output();
                 }
 
             },
             _handle_err_code: function() {
                 var that = this;
-                if (that._solve_err_code == FCS_STATE_SUSPEND_PROCESS) {
+                if (that._solve_err_code == FCS_STATE_SUSPEND_PROCESS
+                    && !that._was_iterations_count_exceeded) {
                     that._enqueue_resume();
                 }
 
                 var that = this;
 
                 that._disable_output_display();
+                that._was_iterations_count_exceeded = false;
 
                 that._instance = new FC_Solve({
                     cmd_line_preset: that._get_cmd_line_preset(),