Skip to content

Reconnect may lead to crash,cause of race condition #792

Open
@luoqisheng

Description

@luoqisheng

createWebsocketAndConnect called in the engineQueue, which create a new websocket.
while the stream delegate methodopen func stream(_ aStream: Stream, handle eventCode: Stream.Event) was called in another thread( the com.vluxe.starscream.websocket). When race happens , it may lead to crash. the crash log may like this:

image

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