Skip to content

RTMTimer Missing Deallocation its causing a crash. #17

@ifgs1

Description

@ifgs1

Right now, the RMTimer class its causing a memory crash, since it is not stopping the timer in the deInit method. Before deallocating the RMTTimer you need to cancel the GCD timer, by not doing so, the timer will be triggered when the handler is deallocated resulting in the crash shown below.

We checked that you based you work on this Medium article A Background Repeating Timer in Swift, how ever the last step was not implemented in order to stop the timer and in consequence avoid this crash.

Screen Shot 2019-05-10 at 1 24 34 PM

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions