basho / erlang_js

A linked-in driver for Erlang to Mozilla's Spidermonkey Javascript runtime.
Apache License 2.0
238 stars 88 forks source link

Move the call to end_request to before the context is destroyed #13

Closed Vagabond closed 13 years ago

Vagabond commented 13 years ago

Fixes az://322

The way the code was on sm_stop, the driver's shutdown routine, was destroying the VM context before calling end_request, which was operating on the context. This simple change simply calls end_request before the context is destroyed.

kellymclaughlin commented 13 years ago

+1 to merge.