Skip to content

cc.net.SocketTCP dispatch huge close event #3

@ptrjeffrey

Description

@ptrjeffrey

There are 3 schedulers only create but not release on right way!
So,if reconnected over 3 times then huge SocketTCP.EVENT_CLOSED event will be sended!
Not onley SocketTCP.EVENT_CLOSE, also EVENT_CONNECT_FAILURE.
So if modify this file,it works good.
self.connectTimeTickScheduler = scheduler.scheduleGlobal(__connectTimeTick, SOCKET_TICK_TIME)
add one raw code like this:
if self.connectTimeTickScheduler then
scheduler.unscheduleGlobal(self.connectTimeTickScheduler)
self.connectTimeTickScheduler = nil
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions