Skip to content

Web workers never terminated #24

@joshi1983

Description

@joshi1983

A new web worker is made every time scan is called but the old workers are never closed or terminated.

We probably want to call terminate as documented here:
https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate

The following screenshot is from Google Chrome Developer Tools "Source" tab after scanning multiple images with nude.js:
image

Related to #1

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