Skip to content

Crash on dispatch_async in SocketEngine with v2.3.4 #97

Closed
@sovannarithsok

Description

@sovannarithsok

I have created a simple project that migrate Swift class in ObjC project to connect with a specific IP and port and I have noticed that when I initial the SocketIOClient local variable it doesn't fire (Doesn't work ) but for global variable it crashed at the method as below:

  dispatch_async(dispatch_get_main_queue()) {[weak self] in
        if let this = self {
            this.pingTimer = NSTimer.scheduledTimerWithTimeInterval(NSTimeInterval(this.pingInterval!),
                target: this,
                selector: Selector("sendPing"), userInfo: nil, repeats: true)
        }
 }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions