binarykitchen / videomail-client

A wicked npm package to record videos directly in the browser, wohooo!
https://videomail.io
Creative Commons Zero v1.0 Universal
55 stars 19 forks source link

When container has unloaded, do not trigger build again #117

Closed binarykitchen closed 7 years ago

binarykitchen commented 7 years ago

happens after #videomail > Container: unload() undefined ... #videomail > Container: build() is called then. shouldn't be.

  function build () {
    readystate.interactive(function (previousState) {
      // it can happen that it gets called twice, i.E. when an error is thrown
      // in the middle of the build() fn
      if (previousState !== readystate.INTERACTIVE && !container.isBuilt()) {
        container.build()
      }
    })
  }
binarykitchen commented 7 years ago

actually a vm issue