mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-02 14:25:55 +01:00
Fix requesting write locks in WebNodes.
This commit is contained in:
parent
0f841bac29
commit
8277e89075
@ -440,10 +440,9 @@ void WebNode::_notification(const int what) {
|
||||
case NOTIFICATION_INTERNAL_PROCESS: {
|
||||
if (_write_lock_requested) {
|
||||
_rw_lock.write_lock();
|
||||
_write_lock_requested = false;
|
||||
notification(NOTIFICATION_WEB_NODE_WRITE_LOCKED);
|
||||
_rw_lock.write_unlock();
|
||||
|
||||
_write_lock_requested = false;
|
||||
}
|
||||
} break;
|
||||
default:
|
||||
@ -464,6 +463,9 @@ WebNode::WebNode() {
|
||||
#ifdef MODULE_DATABASE_ENABLED
|
||||
_migrations_enabled = false;
|
||||
#endif
|
||||
|
||||
_write_lock_requested = false;
|
||||
set_process_internal(true);
|
||||
}
|
||||
|
||||
WebNode::~WebNode() {
|
||||
|
Loading…
Reference in New Issue
Block a user