Merge commit 'v2.5.1'
[ossec-hids.git] / src / client-agent / notify.c
index 373dd66..39c332c 100755 (executable)
@@ -1,11 +1,11 @@
-/* @(#) $Id: notify.c,v 1.23 2009/06/26 13:50:02 dcid Exp $ */
+/* @(#) $Id$ */
 
 /* Copyright (C) 2009 Trend Micro Inc.
  * All right reserved.
  *
  * This program is a free software; you can redistribute it
  * and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
  * Foundation
  */
 
@@ -68,6 +68,7 @@ void run_notify()
     curr_time = time(0);
 
 
+    #ifndef ONEWAY
     /* Check if the server has responded */
     if((curr_time - available_server) > (3*NOTIFY_TIME))
     {
@@ -83,6 +84,7 @@ void run_notify()
         verbose(SERVER_UP, ARGV0);
         os_delwait();
     }
+    #endif
 
 
     /* Check if time has elapsed */