We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf24f8b commit bdbc5a6Copy full SHA for bdbc5a6
src/Sessions/MemorySessionPool.php
@@ -25,14 +25,13 @@ public function __construct(Retry &$retry)
25
*/
26
public function __destruct()
27
{
28
- foreach (static::$sessions as $session_id => $session)
29
- {
30
- if (static::$retry==null){
31
- static::$retry = new Retry();
+ foreach (static::$sessions as $session_id => $session) {
+ try {
+ static::$retry->retry(function () use ($session) {
+ $session->delete();
32
+ }, true);
33
+ } catch (\Exception $e) {
34
}
- static::$retry->retry(function () use ($session) {
- $session->delete();
35
- },true);
36
37
38
0 commit comments