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 dluxemburg committed Jul 17, 2018
1 parent eb9ad72 commit 4bd55f4
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 4bd55f4

Please sign in to comment.