Skip to content

Commit

Permalink
Fix retain loop created in websocket ping
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed May 16, 2024
1 parent 9b8fcc4 commit 6c90048
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ public class RemoteChangeObserver: NSObject, NKCommonDelegate, URLSessionWebSock
return
}

webSocketTask?.sendPing { error in
webSocketTask?.sendPing { [weak self] error in
guard let self else { return }
guard error == nil else {
self.logger.warning(
"""
Expand Down

0 comments on commit 6c90048

Please sign in to comment.