Small bugfix
This commit is contained in:
parent
e1a0ced257
commit
b8eea05f64
@ -345,6 +345,8 @@ class Connection
|
|||||||
|
|
||||||
public function send_message($message)
|
public function send_message($message)
|
||||||
{
|
{
|
||||||
|
$this->must_open = $this->must_open || $this->sock === null || $this->sock->getResource() === null;
|
||||||
|
|
||||||
if ($this->must_open) {
|
if ($this->must_open) {
|
||||||
$this->__construct($this->proxy, $this->extra, $this->ip, $this->port, $this->protocol, $this->timeout, $this->ipv6);
|
$this->__construct($this->proxy, $this->extra, $this->ip, $this->port, $this->protocol, $this->timeout, $this->ipv6);
|
||||||
$this->must_open = false;
|
$this->must_open = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user