X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ffreenet%2Fidentityintroductioninserter.cpp;h=05fe782833f7baeef25d4f745f2efb4a3b6adb31;hb=9a14c0d9f7f7c319e539583b93664953764e83b7;hp=aff048b7552bf1468c086196e94f1919dc12a91a;hpb=8adfd604a97d385869b0ce763b35d014d7aa2cca;p=fms.git diff --git a/src/freenet/identityintroductioninserter.cpp b/src/freenet/identityintroductioninserter.cpp index aff048b..05fe782 100644 --- a/src/freenet/identityintroductioninserter.cpp +++ b/src/freenet/identityintroductioninserter.cpp @@ -61,6 +61,8 @@ const bool IdentityIntroductionInserter::HandleMessage(FCPMessage &message) if(message["Fatal"]=="true" || message["Code"]=="9") { m_db->Execute("DELETE FROM tblIdentityIntroductionInserts WHERE UUID='"+idparts[3]+"';"); + // update the puzzle from the request table (set to not found) because we don't need it anymore and don't want to user tyring to solve it again + m_db->Execute("UPDATE tblIntroductionPuzzleRequests SET Found='false' WHERE UUID='"+idparts[3]+"';"); m_log->WriteLog(LogFile::LOGLEVEL_WARNING,"IdentityIntroductionInserter::HandleMessage received fatal error trying to insert IdentityIntroduction "+idparts[3]); } m_inserting=false; @@ -88,7 +90,7 @@ const bool IdentityIntroductionInserter::HandleMessage(FCPMessage &message) void IdentityIntroductionInserter::Initialize() { m_inserting=false; - Option::instance()->Get("MessageBase",m_messagebase); + Option::Instance()->Get("MessageBase",m_messagebase); } void IdentityIntroductionInserter::Process() @@ -153,4 +155,4 @@ void IdentityIntroductionInserter::StartInsert(const long localidentityid, const m_log->WriteLog(LogFile::LOGLEVEL_DEBUG,"IdentityIntroductionInserter::StartInsert could not find a public key for identity. It is probably a new identity that doesn't have a key yet."); } -} \ No newline at end of file +}