Skip to content

Commit

Permalink
Merge pull request #16 from zf-fr/fix-async
Browse files Browse the repository at this point in the history
Fix async
  • Loading branch information
bakura10 committed Apr 16, 2014
2 parents 6f5a909 + c972e91 commit 2a3a245
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2.0.3

* Return in Error handler if no response is set (which happens in case of async calls)

## 2.0.2

* Fix wrong parameter type for get list merge vars [#13](https://github.com/zf-fr/zfr-mailchimp/pull/13)
Expand Down
4 changes: 2 additions & 2 deletions src/ZfrMailChimp/Client/Listener/ErrorHandlerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ public static function getSubscribedEvents()
public function handleError(Event $event)
{
$response = $event['response'];
if ($response->getStatusCode() === 200) {

if (null === $response || $response->getStatusCode() === 200) {
return;
}

Expand Down

0 comments on commit 2a3a245

Please sign in to comment.