From 8ab07d11b11166b687b5b37d24666944c7f77531 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 21 Jun 2021 16:51:35 +0200 Subject: [PATCH] fixed: cur.request->function->fun didn't have a model connector set when a request started --- winixd/core/app.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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);