summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyungwook Tak <k.tak@samsung.com>2017-02-23 17:29:31 +0900
committerKyungwook Tak <k.tak@samsung.com>2017-02-23 17:29:31 +0900
commit9d64087d82c52b04ca50b995f6604bd247424f73 (patch)
tree46fec25a4d68835193c5444c809d50a7f3e2c74a
parent30ff9957262dd8cbf8e7b00418c9d16a960785e5 (diff)
downloadcsr-framework-accepted/tizen_tv.tar.gz
csr-framework-accepted/tizen_tv.tar.bz2
csr-framework-accepted/tizen_tv.zip
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>
-rw-r--r--src/framework/common/native-mainloop.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/framework/common/native-mainloop.cpp b/src/framework/common/native-mainloop.cpp
index dd61f04..25ab9b2 100644
--- a/src/framework/common/native-mainloop.cpp
+++ b/src/framework/common/native-mainloop.cpp
@@ -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);
}