File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change
1
+ * update destructor in MemorySessionPool
1
2
* fixed exception on re-create server nodes
2
3
* fixed key name in createTable function
3
4
* added simple std looger
Original file line number Diff line number Diff line change @@ -25,14 +25,13 @@ public function __construct(Retry &$retry)
25
25
*/
26
26
public function __destruct ()
27
27
{
28
- foreach (static ::$ sessions as $ session_id => $ session )
29
- {
30
- if (static ::$ retry ==null ){
31
- static ::$ retry = new Retry ();
28
+ foreach (static ::$ sessions as $ session_id => $ session ) {
29
+ try {
30
+ static ::$ retry ->retry (function () use ($ session ) {
31
+ $ session ->delete ();
32
+ }, true );
33
+ } catch (\Exception $ e ) {
32
34
}
33
- static ::$ retry ->retry (function () use ($ session ) {
34
- $ session ->delete ();
35
- },true );
36
35
}
37
36
}
38
37
You can’t perform that action at this time.
0 commit comments