1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Merge origin/master

Conflicts:
	objects/functions.php
This commit is contained in:
DanieL 2023-01-29 18:49:36 -03:00
commit f34ed76517
16 changed files with 1901 additions and 1147 deletions

View file

@ -113,6 +113,9 @@ class Message implements MessageComponentInterface {
public function onClose(ConnectionInterface $conn) {
global $onMessageSentTo, $SocketGetTotals;
$client = dbGetRowFromResourcesId($conn->resourceId);
if(empty($client)){
$client = array('users_id'=>0);
}
_log_message("onClose {$conn->resourceId} before deleted");
dbDeleteConnection($conn->resourceId);
_log_message("onClose {$conn->resourceId} has deleted");