Changeset 14052


Ignore:
Timestamp:
06/03/12 20:25:37 (12 years ago)
Author:
tbretz
Message:
Stop a readline and JavaScript if STOP is received.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/dimctrl.cc

    r14017 r14052  
    66#include "MessageDim.h"
    77#include "RemoteControl.h"
     8
     9#include "InterpreterV8.h"
    810
    911using namespace std;
     
    9698    }
    9799
     100    void StopScript()
     101    {
     102        Readline::StopScript();
     103        InterpreterV8::JsStop();
     104    }
     105
    98106    void commandHandler()
    99107    {
     
    107115
    108116            Debug(msg);
    109             Readline::StopScript();
     117            StopScript();
    110118        }
    111119
     
    262270    }
    263271
    264     void Stop(int stop=0) { fStop = stop; Readline::StopScript(); }
     272    void Stop(int stop=0) { fStop = stop; StopScript(); }
    265273    int Run(bool)
    266274    {
Note: See TracChangeset for help on using the changeset viewer.