Skip to content

Commit 3436552

Browse files
committed
Set null
1 parent 49885d1 commit 3436552

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Discord/Voice/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class Client extends EventEmitter
288288
*
289289
* @param Discord $discord The Discord instance.
290290
* @param Channel $channel
291-
* @param string[] $voice_sessions
291+
* @param string[] &$voice_sessions
292292
* @param array $data
293293
* @param bool $deaf Default: false
294294
* @param bool $mute Default: false

src/Discord/Voice/Client/WS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ public function handleClose(int $op, string $reason): void
558558
}
559559

560560
$this->socket->close();
561-
unset($this->discord->voice_sessions[$this->vc->channel->guild_id]);
561+
$this->discord->voice_sessions[$this->vc->channel->guild_id] = null;
562562

563563
// Don't reconnect on a critical opcode or if closed by user.
564564
if (in_array($op, Op::getCriticalVoiceCloseCodes()) || $this?->vc->userClose) {

0 commit comments

Comments
 (0)