提交 97a3aeeb 编写于 作者: wafwerar's avatar wafwerar

[TD-6169]<fix>: windows dll client can not quit.

上级 f9b7b86e
...@@ -200,7 +200,7 @@ void taos_init_imp(void) { ...@@ -200,7 +200,7 @@ void taos_init_imp(void) {
// In the APIs of other program language, taos_cleanup is not available yet. // In the APIs of other program language, taos_cleanup is not available yet.
// So, to make sure taos_cleanup will be invoked to clean up the allocated resource to suppress the valgrind warning. // So, to make sure taos_cleanup will be invoked to clean up the allocated resource to suppress the valgrind warning.
// But in the dll, the child thread will be killed before atexit takes effect.So taos_cleanup is not necessary. // But in the dll, the child thread will be killed before atexit takes effect.So taos_cleanup is not necessary.
#if defined(_UWIN) #if !defined(TD_WINDOWS)
atexit(taos_cleanup); atexit(taos_cleanup);
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册