NetworkManager in iOS does the same thing. I cannot wrap my head around the reason behind this. As I am calling advertise() with "WIFI-BT" as the default argument, I assume that this.type == User.Peertype.ADVERTISER_BROWSER so my application never stops broadcasting. Please correct me if I'm wrong then, but wouldn't the condition in those functions before stopTransport() essentially prevent the very thing the user wants to stop from stopping? Why do those stop functions appear to start instead? Someone please explain, I am denying my logic because this appears to be there for a purpose..
NetworkManager in iOS does the same thing. I cannot wrap my head around the reason behind this. As I am calling
advertise()
with"WIFI-BT"
as the default argument, I assume thatthis.type == User.Peertype.ADVERTISER_BROWSER
so my application never stops broadcasting. Please correct me if I'm wrong then, but wouldn't the condition in those functions beforestopTransport()
essentially prevent the very thing the user wants to stop from stopping? Why do those stop functions appear to start instead? Someone please explain, I am denying my logic because this appears to be there for a purpose..