Skip to content

Commit

Permalink
PBS Adapter: call done when ajax request fails (prebid#2794)
Browse files Browse the repository at this point in the history
* call done when ajax request fails

* no need to wrap function here
  • Loading branch information
jaiminpanchal27 authored and StefanWallin committed Sep 28, 2018
1 parent 494f954 commit 4f789cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/prebidServerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,10 @@ export function PrebidServer() {

ajax(
_s2sConfig.endpoint,
response => handleResponse(response, requestedBidders, bidRequests, addBidResponse, done),
{
success: response => handleResponse(response, requestedBidders, bidRequests, addBidResponse, done),
error: done
},
requestJson,
{ contentType: 'text/plain', withCredentials: true }
);
Expand Down

0 comments on commit 4f789cb

Please sign in to comment.