Remove error log on NativeMainloop dtor 16/116216/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170320.173510 accepted/tizen/ivi/20170320.010418 accepted/tizen/mobile/20170320.010332 accepted/tizen/tv/20170320.010346 accepted/tizen/unified/20170320.010443 accepted/tizen/wearable/20170320.010402 submit/tizen/20170319.011939
authorKyungwook Tak <k.tak@samsung.com>
Thu, 23 Feb 2017 08:29:31 +0000 (17:29 +0900)
committerKyungwook Tak <k.tak@samsung.com>
Thu, 23 Feb 2017 08:29:31 +0000 (17:29 +0900)
NativeMainloop can be destructed even though it's not timed out case.
Because the loop can be used by client side to implement async logic,
and all listening sockets are closed automatically as RAII

Change-Id: I36760e7202206c82f2a0545e993069ad59549547
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
src/framework/common/native-mainloop.cpp

index dd61f04..25ab9b2 100644 (file)
@@ -70,9 +70,6 @@ NativeMainloop::NativeMainloop() :
 
 NativeMainloop::~NativeMainloop()
 {
-       if (!this->m_isTimedOut && !this->m_callbacks.empty())
-               ERROR("mainloop registered callbacks should be empty except timed out case");
-
        ::close(m_pollfd);
 }