Skip to content

Commit

Permalink
Clear public cached data
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Aug 20, 2021
1 parent 2aedab9 commit 39544a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Api/WebSocket/SocketServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ private function onClose($global){
//TODO如果连接失败 应该public private 都行重新加载
$this->log($con->tag.' reconnection');

//Clear public cached data
foreach ($this->local_global['public'] as $k=>$v) unset($this->local_global['public'][$k]);

$this->reconnection($global,'public');
}else{
$this->log('private connection close '.$con->tag_keysecret['key']);
Expand Down

0 comments on commit 39544a7

Please sign in to comment.