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
12* fixed exception on re-create server nodes
23* fixed key name in createTable function
34* added simple std looger
Original file line number Diff line number Diff line change @@ -25,14 +25,13 @@ public function __construct(Retry &$retry)
2525 */
2626 public function __destruct ()
2727 {
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 ) {
3234 }
33- static ::$ retry ->retry (function () use ($ session ) {
34- $ session ->delete ();
35- },true );
3635 }
3736 }
3837
You can’t perform that action at this time.
0 commit comments