瀏覽代碼

try to get connectiontest running

andre 2 年之前
父節點
當前提交
a66e3b4bde
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      api/class/KerioApiSocket.php

+ 9 - 9
api/class/KerioApiSocket.php

@@ -156,16 +156,16 @@ class KerioApiSocket implements KerioApiSocketInterface {
 	 * @throws	KerioApiException
 	 * @throws	KerioApiException
 	 */
 	 */
 	public function send($data) {
 	public function send($data) {
-		if ($this->checkConnection()) {
 
 
-			logModuleCall(
-				'kerioEmail',
-				__FUNCTION__,
-				$data,
-				'Debug Kerio Api 1',
-				$this
-			);
-	
+		logModuleCall(
+			'kerioEmail',
+			__FUNCTION__,
+			$data,
+			'Debug Kerio Api 1',
+			$this
+		);
+
+	if ($this->checkConnection()) {
 			@fwrite($this->socketHandler, $data);
 			@fwrite($this->socketHandler, $data);
 			return $this->read();
 			return $this->read();
 		}
 		}