Skip to content

Commit c7b24ce

Browse files
committed
Merge pull request #21 from slamdata/infallible-cancel
Don't allow cancelling to fail
2 parents 3fbe708 + e15ba78 commit c7b24ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)