remove messages after sending them if they appear to have been sent

successfully.
This commit is contained in:
Andy2 2011-08-17 19:52:55 -07:00
parent 8e6812780d
commit 58be931558

View file

@ -784,7 +784,7 @@ handleMsgsMsg( int sock, bool sendFull,
ssize_t nwritten = write( sock, &out[0], out.size() );
if ( sendFull && nwritten >= 0 && (size_t)nwritten == out.size() ) {
dbmgr->RecordSent( &msgIDs[0], msgIDs.size() );
// dbmgr->RemoveStoredMessages( &msgIDs[0], msgIDs.size() );
dbmgr->RemoveStoredMessages( &msgIDs[0], msgIDs.size() );
}
}
} // handleMsgsMsg