make sure we don't handle poll messages if we aren't polling
This commit is contained in:
parent
5976ef1752
commit
62131ef904
@ -112,7 +112,7 @@ extension SocketEnginePollable {
|
||||
|
||||
func doLongPoll(req: NSURLRequest) {
|
||||
doRequest(req) {[weak self] data, res, err in
|
||||
guard let this = self else { return }
|
||||
guard let this = self where this.polling else { return }
|
||||
|
||||
if err != nil || data == nil {
|
||||
DefaultSocketLogger.Logger.error(err?.localizedDescription ?? "Error", type: "SocketEnginePolling")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user