Fix error reported in #3121.

This commit is contained in:
ccd0 2021-07-07 20:38:32 -07:00
parent cb68f4332e
commit c8c293e6eb

View File

@ -48,7 +48,8 @@ Captcha.t =
delete @nodes.container
updateThread: ->
{boardID, threadID} = Captcha.t.currentThread
return unless @isEnabled
{boardID, threadID} = (Captcha.t.currentThread or {})
newThread = Captcha.t.getThread()
unless newThread.boardID is boardID and newThread.threadID is threadID
Captcha.t.destroy()