diff --git a/winixd/core/app.cpp b/winixd/core/app.cpp index 4c16c7f..053908f 100644 --- a/winixd/core/app.cpp +++ b/winixd/core/app.cpp @@ -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);