Net/XMPP/XMLStream.php
authoredward <edward@roojs.com>
Thu, 11 Jan 2018 08:08:27 +0000 (16:08 +0800)
committeredward <edward@roojs.com>
Thu, 11 Jan 2018 08:08:27 +0000 (16:08 +0800)
Net/XMPP/XMLStream.php

index d5c9425..c52668c 100644 (file)
@@ -345,8 +345,10 @@ class Net_XMPP_XMLStream {
                 $conflag = STREAM_CLIENT_CONNECT;
             }
             $conntype = 'tcp';
-            if ($this->use_ssl)
+            if ($this->use_ssl){
                 $conntype = 'ssl';
+            }
+            
             $this->log->log("Connecting to $conntype://{$this->host}:{$this->port}");
             try {
                 $this->socket = @stream_socket_client("$conntype://{$this->host}:{$this->port}", $errno, $errstr, $timeout, $conflag);