Skip to content

Commit feccde5

Browse files
author
mohsen shamohammadi
authored
Merge ff2d42e into 2a478e8
2 parents 2a478e8 + ff2d42e commit feccde5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ApnChannel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ public function send($notifiable, Notification $notification)
107107
'error' => $response->getCode(),
108108
])
109109
);
110+
111+
//connection is useless so create a new connection
112+
$this->closeConnection();
113+
$this->openConnection();
110114
}
111115
} catch (Exception $e) {
112116
throw SendingFailed::create($e);

0 commit comments

Comments
 (0)