Bläddra i källkod

try to get connectiontest running

andre 2 år sedan
förälder
incheckning
35ef0e7202
1 ändrade filer med 9 tillägg och 9 borttagningar
  1. 9 9
      api/class/KerioApiSocket.php

+ 9 - 9
api/class/KerioApiSocket.php

@@ -156,15 +156,6 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 * @throws	KerioApiException
 	 */
 	public function send($data) {
-
-		logModuleCall(
-			'kerioEmail',
-			__FUNCTION__,
-			$data,
-			'Debug Kerio Api 1',
-			$this
-		);
-
 	if ($this->checkConnection()) {
 			@fwrite($this->socketHandler, $data);
 			return $this->read();
@@ -236,6 +227,15 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 */
 	public final function checkConnection() {
 		if ($this->checkHost()) {
+
+			logModuleCall(
+				'kerioEmail',
+				__FUNCTION__,
+				$data,
+				'Debug Kerio Api 1',
+				$this->checkHost()
+			);
+	
 			$socket = @fsockopen($this->hostname, $this->port, $errno, $errstr, $this->timeout);
 			$this->errorCode = $errno;
 			$this->errorMessage = $errstr;