Loading plugins/media/media.cpp +4 −4 Changes for plugins/media/media.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -1615,7 +1615,7 @@ namespace blogi { void _ensureMdbReady(int tid, const std::string &token = ""){ if(!_mdb[tid]){ try { _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, true); _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, false); } catch(std::exception &e) { std::cerr << "media: _ensureMdbReady: new Client failed: " << e.what() << std::endl; throw; Loading @@ -1628,7 +1628,7 @@ namespace blogi { // Connection broken — recreate client and retry std::cerr << "media: _ensureMdbReady: set_token failed, reconnecting: " << e.what() << std::endl; try { _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, true); _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, false); _mdb[tid]->set_token(token); } catch(std::exception &e2) { std::cerr << "media: _ensureMdbReady: reconnect failed: " << e2.what() << std::endl; Loading @@ -1638,7 +1638,7 @@ namespace blogi { } catch(...) { std::cerr << "media: _ensureMdbReady: set_token unknown error, reconnecting" << std::endl; try { _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, true); _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, false); _mdb[tid]->set_token(token); } catch(...) { _mdb[tid].reset(); Loading Loading @@ -1805,7 +1805,7 @@ namespace blogi { pool.pop_back(); return client; } return std::make_unique<libhttppp::HttpClient>(*_mdbHttpUrl, true); return std::make_unique<libhttppp::HttpClient>(*_mdbHttpUrl, 0); } // ---- image dimension parsing ---- Loading Loading
plugins/media/media.cpp +4 −4 Changes for plugins/media/media.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -1615,7 +1615,7 @@ namespace blogi { void _ensureMdbReady(int tid, const std::string &token = ""){ if(!_mdb[tid]){ try { _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, true); _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, false); } catch(std::exception &e) { std::cerr << "media: _ensureMdbReady: new Client failed: " << e.what() << std::endl; throw; Loading @@ -1628,7 +1628,7 @@ namespace blogi { // Connection broken — recreate client and retry std::cerr << "media: _ensureMdbReady: set_token failed, reconnecting: " << e.what() << std::endl; try { _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, true); _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, false); _mdb[tid]->set_token(token); } catch(std::exception &e2) { std::cerr << "media: _ensureMdbReady: reconnect failed: " << e2.what() << std::endl; Loading @@ -1638,7 +1638,7 @@ namespace blogi { } catch(...) { std::cerr << "media: _ensureMdbReady: set_token unknown error, reconnecting" << std::endl; try { _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, true); _mdb[tid] = std::make_unique<mediadb::Client>(_mdbUrl, false, false); _mdb[tid]->set_token(token); } catch(...) { _mdb[tid].reset(); Loading Loading @@ -1805,7 +1805,7 @@ namespace blogi { pool.pop_back(); return client; } return std::make_unique<libhttppp::HttpClient>(*_mdbHttpUrl, true); return std::make_unique<libhttppp::HttpClient>(*_mdbHttpUrl, 0); } // ---- image dimension parsing ---- Loading