Fix session factory
parent
c1c158ccda
commit
cde93c68dc
|
@ -76,15 +76,21 @@ class Session
|
|||
default:
|
||||
$handler = null;
|
||||
}
|
||||
|
||||
$session = new Native($baseURL, $handler);
|
||||
|
||||
} catch (Throwable $e) {
|
||||
$logger->notice('Unable to create session', ['mode' => $mode, 'session_handler' => $session_handler, 'exception' => $e]);
|
||||
$session = new Memory();
|
||||
} finally {
|
||||
$profiler->stopRecording();
|
||||
return $session;
|
||||
}
|
||||
|
||||
try {
|
||||
$session = new Native($baseURL, $handler);
|
||||
} catch (Throwable $e) {
|
||||
$logger->notice('Unable to create session', ['mode' => $mode, 'session_handler' => $session_handler, 'exception' => $e]);
|
||||
$session = new Memory();
|
||||
}
|
||||
|
||||
$profiler->stopRecording();
|
||||
return $session;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue