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 02:43:16 -0800
commita332a177ddffe5dac05b0b7d16937cbe4d6f2661 (patch)
tree46f9a5bb2f110b5e56c98ddd0a3d93b451ec2fca
parent6adc3ec9be0e6b4e0e24bca85e7a0872f7d7c6ff (diff)
downloadcsr-framework-a332a177ddffe5dac05b0b7d16937cbe4d6f2661.tar.gz
csr-framework-a332a177ddffe5dac05b0b7d16937cbe4d6f2661.tar.bz2
csr-framework-a332a177ddffe5dac05b0b7d16937cbe4d6f2661.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> (cherry picked from commit 9d64087d82c52b04ca50b995f6604bd247424f73)
-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);
}