mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-09 01:20:04 +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: {
|
case NOTIFICATION_INTERNAL_PROCESS: {
|
||||||
if (_write_lock_requested) {
|
if (_write_lock_requested) {
|
||||||
_rw_lock.write_lock();
|
_rw_lock.write_lock();
|
||||||
|
_write_lock_requested = false;
|
||||||
notification(NOTIFICATION_WEB_NODE_WRITE_LOCKED);
|
notification(NOTIFICATION_WEB_NODE_WRITE_LOCKED);
|
||||||
_rw_lock.write_unlock();
|
_rw_lock.write_unlock();
|
||||||
|
|
||||||
_write_lock_requested = false;
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
default:
|
default:
|
||||||
@ -464,6 +463,9 @@ WebNode::WebNode() {
|
|||||||
#ifdef MODULE_DATABASE_ENABLED
|
#ifdef MODULE_DATABASE_ENABLED
|
||||||
_migrations_enabled = false;
|
_migrations_enabled = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
_write_lock_requested = false;
|
||||||
|
set_process_internal(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
WebNode::~WebNode() {
|
WebNode::~WebNode() {
|
||||||
|
Loading…
Reference in New Issue
Block a user