From 453c721acc94f560a1dd4b0a6d6d6fb1740c1966 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 24 Mar 2019 02:49:15 -0700 Subject: [PATCH] Detect abort by check against current request in Quick Reply --- src/Posting/QR.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 279801b5b..6ce276a3d 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -752,7 +752,7 @@ QR = QR.status() response: -> - return if @aborted + return if @ isnt QR.req # aborted delete QR.req post = QR.posts[0] @@ -871,10 +871,9 @@ QR = check() abort: -> - if QR.req and !QR.req.isUploadFinished and QR.req.abort - QR.req.aborted = true - QR.req.abort() + if (oldReq = QR.req) and !QR.req.isUploadFinished delete QR.req + oldReq.abort() Captcha.cache.save QR.currentCaptcha if QR.currentCaptcha delete QR.currentCaptcha QR.posts[0].unlock()