mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-11 22:32:02 +02:00
Use error macros in HTTPSessionManager and HTTPSessionManagerDB.
This commit is contained in:
parent
225e3ff79c
commit
b8b51e7525
@ -185,11 +185,7 @@ void HTTPSessionManagerDB::load_sessions() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!s.is_valid()) {
|
ERR_CONTINUE_MSG(!s.is_valid(), vformat("Error: HTTPSessionManagerDB::load_sessions(): %d sid doesn't exists!", session_db_id));
|
||||||
printf("Error: HTTPSessionManagerDB::load_sessions(): %d sid doesn't exists!\n", session_db_id);
|
|
||||||
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
String key = r->get_cell(1);
|
String key = r->get_cell(1);
|
||||||
String vb64 = r->get_cell(2);
|
String vb64 = r->get_cell(2);
|
||||||
|
@ -14,10 +14,7 @@
|
|||||||
#include "web_server_request.h"
|
#include "web_server_request.h"
|
||||||
|
|
||||||
void HTTPSessionManager::add_session(Ref<HTTPSession> session) {
|
void HTTPSessionManager::add_session(Ref<HTTPSession> session) {
|
||||||
if (!session.is_valid()) {
|
ERR_FAIL_COND(!session.is_valid());
|
||||||
printf("HTTPSessionManager::add_session: ERROR, session is null!\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_mutex.lock();
|
_mutex.lock();
|
||||||
|
|
||||||
@ -28,10 +25,7 @@ void HTTPSessionManager::add_session(Ref<HTTPSession> session) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HTTPSessionManager::remove_session(Ref<HTTPSession> session) {
|
void HTTPSessionManager::remove_session(Ref<HTTPSession> session) {
|
||||||
if (!session.is_valid()) {
|
ERR_FAIL_COND(!session.is_valid());
|
||||||
printf("HTTPSessionManager::remove_session: ERROR, session is null!\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_mutex.lock();
|
_mutex.lock();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user