mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-12 08:47:50 +01:00
drop any relayIDs for which messages didn't have any effect on the
game they were passed to. This prevents duplicate messages from generating notifications over and over -- and dupes are common when messages stay on relay until the receiving game ACKs them.
This commit is contained in:
parent
688fadb965
commit
700c58d6dc
1 changed files with 5 additions and 3 deletions
|
@ -193,9 +193,11 @@ public class NetUtils {
|
||||||
// if game has messages, open it and feed 'em
|
// if game has messages, open it and feed 'em
|
||||||
// to it.
|
// to it.
|
||||||
if ( null != msgs[ii] ) {
|
if ( null != msgs[ii] ) {
|
||||||
GameUtils.feedMessages( context, ids[ii], msgs[ii] );
|
if( GameUtils.feedMessages( context, ids[ii],
|
||||||
DBUtils.setHasMsgs( ids[ii] );
|
msgs[ii] ) ) {
|
||||||
idsWMsgs.add( ids[ii] );
|
DBUtils.setHasMsgs( ids[ii] );
|
||||||
|
idsWMsgs.add( ids[ii] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( 0 < idsWMsgs.size() ) {
|
if ( 0 < idsWMsgs.size() ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue