`MCBrowserViewController` can create sessions with more peers than specified in `maximumNumberOfPeers`

Originator:jiayong.ou
Number:rdar://15319293 Date Originated:25-Oct-2013 04:34 PM
Status:Closed Resolved:03-Jun-2014 09:30 PM
Product:iOS SDK Product Version:7.0.3
Classification:Other Bug Reproducible:Always
 
Summary:
When `maximumNumberOfPeers` is set and the user sends invites to a larger number of peers than `maximumNumberOfPeers`, this can result in a session with more peers than allowed

Steps to Reproduce:
With three devices and with `maximumNumberOfPeers` set to two, have two devices advertising using `MCAdvertiserAssistant` and one browsing using `MCBrowserViewController`.

1. On the device where `MCBrowserViewController` is shown, invite both of the other peers
2. On the advertising devices, press "Accept" **at the same time**


Expected Results:
Session with two peers


Actual Results:
Session with three peers

Version:
iOS 7.0.3

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!