PhpAmqpLib/Connection/AbstractConnection.php
protected function closeChannels()
    {
        foreach ($this->channels as $key => $channel) {
            // channels[0] is this connection object, so don't close it yet
            if ($key === 0) {
                continue;
            }
            try {
                $channel->close();
            } catch (\Exception $e) {
                /* Ignore closing errors */
            }
        }
    }
protected function closeChannels()
    {
        foreach ($this->channels as $key => $channel) {
            // channels[0] is this connection object, so don't close it yet
            if ($key === 0) {
                continue;
            }
            try {
                $channel->close();
            } catch (\Exception $e) {
                /* Ignore closing errors */
            }
        }
    }
protected function closeChannels ( ) { foreach ( $ this -> channels as $ key => $ channel ) { // channels[0] is this connection object, so don't close it yet if ( $ key === 0 ) { continue ; } try { $ channel -> close ( ) ; } catch ( \ Exception $ e ) { /* Ignore closing errors */ } } }
Closes all available channels
Closes all available channels