Skip to content

Commit

Permalink
ConnectionException does not exist anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Fneufneu committed May 31, 2017
1 parent abbf251 commit c4a4a69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use React\MySQL\Commands\PingCommand;
use React\MySQL\Commands\QueryCommand;
use React\MySQL\Commands\QuitCommand;
use React\Socket\ConnectionException;

class Connection extends EventEmitter
{
Expand Down Expand Up @@ -224,7 +223,7 @@ public function handleConnectionClosed()
{
if ($this->state < self::STATE_CLOSEING) {
$this->state = self::STATE_CLOSED;
$this->emit('error', [new ConnectionException('mysql server has gone away'), $this]);
$this->emit('error', [new \RuntimeException('mysql server has gone away'), $this]);
}
}

Expand Down

0 comments on commit c4a4a69

Please sign in to comment.