mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 17:07:20 +01: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()) {
|
||||
printf("Error: HTTPSessionManagerDB::load_sessions(): %d sid doesn't exists!\n", session_db_id);
|
||||
|
||||
continue;
|
||||
}
|
||||
ERR_CONTINUE_MSG(!s.is_valid(), vformat("Error: HTTPSessionManagerDB::load_sessions(): %d sid doesn't exists!", session_db_id));
|
||||
|
||||
String key = r->get_cell(1);
|
||||
String vb64 = r->get_cell(2);
|
||||
|
@ -14,10 +14,7 @@
|
||||
#include "web_server_request.h"
|
||||
|
||||
void HTTPSessionManager::add_session(Ref<HTTPSession> session) {
|
||||
if (!session.is_valid()) {
|
||||
printf("HTTPSessionManager::add_session: ERROR, session is null!\n");
|
||||
return;
|
||||
}
|
||||
ERR_FAIL_COND(!session.is_valid());
|
||||
|
||||
_mutex.lock();
|
||||
|
||||
@ -28,10 +25,7 @@ void HTTPSessionManager::add_session(Ref<HTTPSession> session) {
|
||||
}
|
||||
|
||||
void HTTPSessionManager::remove_session(Ref<HTTPSession> session) {
|
||||
if (!session.is_valid()) {
|
||||
printf("HTTPSessionManager::remove_session: ERROR, session is null!\n");
|
||||
return;
|
||||
}
|
||||
ERR_FAIL_COND(!session.is_valid());
|
||||
|
||||
_mutex.lock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user