Skip to content

Commit

Permalink
Prevent from crashes when url doesn't exists
Browse files Browse the repository at this point in the history
Cherry picked from 3655b79..0d62434
  • Loading branch information
Mateusz Nowak authored and DaveRandom committed Jul 17, 2014
1 parent 22c9004 commit add4e38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Addr/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ private function onSocketReadable()
*/
private function completePendingLookup($id, $addr, $type)
{
call_user_func($this->pendingLookups[$id]['callback'], $addr, $type);
if (isset($this->pendingLookups[$id])) {
call_user_func($this->pendingLookups[$id]['callback'], $addr, $type);
}

unset($this->pendingLookups[$id]);
}

Expand Down

0 comments on commit add4e38

Please sign in to comment.