Added to the beginning of the "server" function:
connection?.cancel()
Removed the app from the iPhone.
rebooted iPhone.
100% error repeatability
Topic:
App & System Services
SubTopic:
Networking
Tags: