fix(util/thread_script_state): new state was being added twice to g_states, use import_explicit

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-06-27 19:52:49 -07:00
parent 9fb8fd0e7b
commit 2673a33bf3

View file

@ -69,9 +69,8 @@ static script_state get_state() {
if (p.first) if (p.first)
r.dostring(p.second.c_str()); r.dostring(p.second.c_str());
else else
r.import(p.second.c_str()); r.import_explicit(p.second.c_str());
} }
g_states.push_back(r);
{ {
// save new state in vector of all states // save new state in vector of all states
lock_guard<mutex> lk(g_state_mutex); lock_guard<mutex> lk(g_state_mutex);