Skip to content

Commit

Permalink
fix channel length
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraYolo committed Jun 18, 2021
1 parent d807186 commit 30b4d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function __destruct()
public function isTimeout() : bool
{
return $this->lastUseTime < microtime(true) - $this->config['max_idle_time']
&& $this->channel->length() > 0;
&& $this->channel->getLength() > 0;
}

/**
Expand Down

0 comments on commit 30b4d53

Please sign in to comment.