mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
don't bother cloning message when it'll be passed to multiple games.
Clone was too late, and there's no chance of modification of the contents.
This commit is contained in:
parent
a03dc80205
commit
27ddc355ed
2 changed files with 0 additions and 7 deletions
|
@ -505,10 +505,6 @@ public class BTService extends Service {
|
|||
DbgUtils.logf( "nobody took msg for gameID %X",
|
||||
gameID );
|
||||
}
|
||||
// duplicate in case recipient modifies the msg
|
||||
if ( 1 < rowids.length ) {
|
||||
buffer = (byte[])buffer.clone();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
DbgUtils.logf( "receiveMessages: read only %d of %d bytes",
|
||||
|
|
|
@ -560,9 +560,6 @@ public class SMSService extends Service {
|
|||
);
|
||||
}
|
||||
}
|
||||
if ( 1 < rowids.length ) {
|
||||
msg = (byte[])msg.clone();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue