Skip to content

Commit e15ba78

Browse files
committed
Don't allow cancelling to fail
1 parent 3fbe708 commit e15ba78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Network/HTTP/Affjax.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ foreign import _cancelAjax
196196
"""
197197
function _cancelAjax (xhr, cancelError, errback, callback) {
198198
return function () {
199-
try { xhr.abort(); } catch (e) { return errback(e)(); }
199+
try { xhr.abort(); } catch (e) { return callback(false)(); }
200200
return callback(true)();
201201
};
202202
};

0 commit comments

Comments
 (0)