Fix "ReferenceError: hook is not defined" when removing hook

This commit is contained in:
Leonardo Crauss Daronco 2015-11-12 16:43:11 -02:00
parent 443d6ba976
commit 0a9376f9b2

View File

@ -105,7 +105,7 @@ module.exports = class Hook
# gave up trying to perform the callback, remove the hook forever
@emitter.on "stopped", (error) =>
Logger.warn "Hook: too many failed attempts to perform a callback call, removing the hook", JSON.stringify(hook)
Logger.warn "Hook: too many failed attempts to perform a callback call, removing the hook for", @callbackURL
@destroy()
@addSubscription = (callbackURL, meetingID=null, callback) ->