From 58be931558862b41ae74e137bb805b1977a76fe7 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Wed, 17 Aug 2011 19:52:55 -0700 Subject: [PATCH] remove messages after sending them if they appear to have been sent successfully. --- xwords4/relay/xwrelay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/relay/xwrelay.cpp b/xwords4/relay/xwrelay.cpp index 72d3a56b5..737e62c24 100644 --- a/xwords4/relay/xwrelay.cpp +++ b/xwords4/relay/xwrelay.cpp @@ -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