Skip to content

Commit

Permalink
Merge pull request #2 from dapetcu21/patch-1
Browse files Browse the repository at this point in the history
Release crash handle after calling callback
  • Loading branch information
britzl authored Aug 25, 2019
2 parents ddb71f1 + 9c8c6df commit 8a0ea65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion googleanalytics/tracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ function M.create(tracking_id)
local handle = crash.load_previous()
if handle then
tracker.exception(crash.get_extra_data(handle), true)
crash.release(handle)
if on_hard_crash then
on_hard_crash(handle)
end
crash.release(handle)
end
else
sys.set_error_handler(function() end)
Expand Down

0 comments on commit 8a0ea65

Please sign in to comment.