wifi: send pending messages on getting connected

Each time we get a socket to a peer, try sending all pending wifi direct
messages. It's a hack, but trying to send isn't that expensive and the
experience is much improved.
This commit is contained in:
Eric House 2016-12-06 08:15:09 -08:00
parent 6eb2a7b71b
commit dc2cd239a1

View file

@ -685,6 +685,10 @@ public class WiDirService extends XWService {
DbgUtils.logd( TAG,
"storeByAddress(); storing wrap for %s",
macAddress );
GameUtils.resendAllIf( XWApp.getContext(),
CommsConnType.COMMS_CONN_P2P,
false );
}
}