mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
xmlrpc-sync: lock config writes during merge.
This might prevent race conditions while the user interface is trying to save data at the same time the xmlrpc client pushes new data. Need some further testing.
This commit is contained in:
parent
9735174eac
commit
60ffb74043
@ -137,6 +137,8 @@ function filter_configure_xmlrpc()
|
||||
function restore_config_section_xmlrpc($new_config)
|
||||
{
|
||||
global $config;
|
||||
// lock config write during merge
|
||||
OPNsense\Core\Config::getInstance()->lock();
|
||||
|
||||
require_once("interfaces.inc");
|
||||
require_once("filter.inc");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user