Просмотр исходного кода

try to get connectiontest running

andre 2 лет назад
Родитель
Сommit
1ff97a8ea2
1 измененных файлов с 9 добавлено и 9 удалено
  1. 9 9
      api/class/KerioApiSocket.php

+ 9 - 9
api/class/KerioApiSocket.php

@@ -226,6 +226,15 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 * @return	boolean	True on success
 	 * @return	boolean	True on success
 	 */
 	 */
 	public final function checkConnection() {
 	public final function checkConnection() {
+        
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $this->hostname,
+            'Debug Kerio Api 1',
+            gethostbyname($this->hostname)
+        );
+
 		if ($this->checkHost()) {
 		if ($this->checkHost()) {
 			$socket = @fsockopen($this->hostname, $this->port, $errno, $errstr, $this->timeout);
 			$socket = @fsockopen($this->hostname, $this->port, $errno, $errstr, $this->timeout);
 			$this->errorCode = $errno;
 			$this->errorCode = $errno;
@@ -244,15 +253,6 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 * @return	boolean	True on success
 	 * @return	boolean	True on success
 	 */
 	 */
 	public final function checkHost() {
 	public final function checkHost() {
-        
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $this,
-            'Debug Kerio Api 1',
-            gethostbyname($this->hostname)
-        );
-
 		return gethostbyname($this->hostname) ? TRUE : FALSE;
 		return gethostbyname($this->hostname) ? TRUE : FALSE;
 	}
 	}