You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a crash when was trying to write data to UDP socket: try socket.write(from: data, to: senderAddress).
Error occurred at: Socket.swift - line 3211.
You are using unowned self which results with "Attempted to read an unowned reference but object ... was already deallocated" error if socket object is deallocated before write completes.
Possible solution would be to use [weak self].
The text was updated successfully, but these errors were encountered:
I've got a crash when was trying to write data to UDP socket:
try socket.write(from: data, to: senderAddress)
.Error occurred at: Socket.swift - line 3211.
You are using
unowned self
which results with "Attempted to read an unowned reference but object ... was already deallocated" error if socket object is deallocated beforewrite
completes.Possible solution would be to use
[weak self].
The text was updated successfully, but these errors were encountered: