Small bugfix

This commit is contained in:
Daniil Gentili 2018-04-01 20:40:24 +02:00
parent e1a0ced257
commit b8eea05f64

View File

@ -345,6 +345,8 @@ class Connection
public function send_message($message)
{
$this->must_open = $this->must_open || $this->sock === null || $this->sock->getResource() === null;
if ($this->must_open) {
$this->__construct($this->proxy, $this->extra, $this->ip, $this->port, $this->protocol, $this->timeout, $this->ipv6);
$this->must_open = false;