Commit 8b8e57d2 authored by jan.koester's avatar jan.koester
Browse files

reworked error throwing media plugin

parent f586a825
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -29,8 +29,12 @@

#include <httppp/exception.h>

#include <mutex>

#include "backend.h"

std::mutex recon_mutex;

blogi::RedisStore::RedisStore(const char *host,int port,const char *password){
    _host=host;
    _port=port;
@@ -102,6 +106,7 @@ void blogi::RedisStore::load(const std::string key,std::vector<char> &value) {
}

void blogi::RedisStore::_reconnect(){
    const std::lock_guard<std::mutex> lock(recon_mutex);

    redisReconnect(_RedisCTX);