fixed: cur.request->function->fun didn't have a model connector set when a request started
This commit is contained in:
parent
a1c0f6f7f0
commit
8ab07d11b1
|
@ -559,6 +559,12 @@ void App::ProcessRequestThrow()
|
|||
{
|
||||
functions.Parse(); // parsing directories, files, functions and parameters
|
||||
|
||||
if( cur.request->function )
|
||||
{
|
||||
cur.request->function->fun.set_connector(model_connector); // IMPROVEME may would be better to add set_connector() method to functions?
|
||||
cur.request->function->fun.propagate_connector();
|
||||
}
|
||||
|
||||
/*
|
||||
* set global connector for now
|
||||
* in the future each thread will have its own model_connector
|
||||
|
@ -576,6 +582,12 @@ void App::ProcessRequestThrow()
|
|||
|
||||
functions.CheckFunctionAndSymlink(); // here a function can be changed
|
||||
|
||||
if( cur.request->function )
|
||||
{
|
||||
cur.request->function->fun.set_connector(model_connector);
|
||||
cur.request->function->fun.propagate_connector();
|
||||
}
|
||||
|
||||
cur.session = session_manager.CheckIfFunctionRequireSession();
|
||||
model_connector.set_winix_session(cur.session);
|
||||
|
||||
|
|
Loading…
Reference in New Issue