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:
parent
9fb8fd0e7b
commit
2673a33bf3
1 changed files with 1 additions and 2 deletions
|
@ -69,9 +69,8 @@ static script_state get_state() {
|
|||
if (p.first)
|
||||
r.dostring(p.second.c_str());
|
||||
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
|
||||
lock_guard<mutex> lk(g_state_mutex);
|
||||
|
|
Loading…
Reference in a new issue