Send ping before adding the watchdog timer 25/294025/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 12 Jun 2023 01:35:56 +0000 (01:35 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 12 Jun 2023 01:35:56 +0000 (01:35 +0000)
Before adding the watchdog timer, AUL library sends the ping request to
AMD to notify.

Change-Id: Ieeabfcb88848e428e7b9a94c3f3b66fa93415fbd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_watchdog.cc

index 27d852c..069a5f3 100644 (file)
@@ -113,6 +113,12 @@ class WatchdogContext {
 
           return G_SOURCE_CONTINUE;
         }, this);
+
+    try {
+      Ping();
+    } catch (const Exception& e) {
+      _E("Exception occurs. error(%d)", e.GetErrorCode());
+    }
   }
 
   void Stop() {