fix tc_epoller crash & update changelist

This commit is contained in:
ruanshudong 2022-02-25 11:19:14 +08:00
parent fad81c26e2
commit 4b9042c3d6
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,19 @@
# v3.0.4 20220225
### en
- support tarscpp server run container
- Fix memory leak caused by timer
- Fix crash caused by transceiver in case of connection timeout
- FIx crash caused by epoller
### cn
- 支持框架容器化运行
- 修复定时器带来的内存泄露
- 修复 tc_transceiver 在连接超时情况下可能带来的 crash
- 修复 tc_epoller 可能带来的 crash
# v3.0.4 20220118
### en

View File

@ -302,6 +302,12 @@ void TC_Epoller::create(int size, bool createNotify)
void TC_Epoller::close()
{
if(_notify != nullptr)
{
delete _notify;
_notify = nullptr;
}
#if TARGET_PLATFORM_LINUX || TARGET_PLATFORM_IOS
::close(_iEpollfd);
_iEpollfd = -1;