fixed bug when submitting stats
This commit is contained in:
parent
98989ab0b8
commit
a5ee8d8885
3 changed files with 16 additions and 1 deletions
|
|
@ -429,6 +429,7 @@ unsigned long Database::cleanDB()
|
|||
}
|
||||
catch(Exception &e)
|
||||
{
|
||||
LERR(e);
|
||||
doQuery("ROLLBACK TRANSACTION");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -278,7 +278,14 @@ void *cleaner_thread_run(void *)
|
|||
{
|
||||
unsigned long spamcount;
|
||||
|
||||
spamcount=db.cleanDB();
|
||||
try
|
||||
{
|
||||
spamcount=db.cleanDB();
|
||||
}
|
||||
catch(Exception &e)
|
||||
{
|
||||
LERR("Error cleaning the database: " + string(e));
|
||||
}
|
||||
LDEB("Cleaning database, cleaning "+Utils::inttostr(spamcount)+" blocked spams.");
|
||||
if(spamcount>0&&cfg.getSubmitStats())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue