Skip to content
Snippets Groups Projects
Commit 4fa0689a authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

Merge branch 'master' of https://gitlab.demlabs.net/cellframe/cellframe-sdk into master

parents 5598602c a50e092e
No related branches found
No related tags found
No related merge requests found
Pipeline #6779 passed with stage
in 11 seconds
......@@ -2,7 +2,7 @@ project(cellframe-sdk C)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_C_STANDARD 11)
set(CELLFRAME_SDK_NATIVE_VERSION "2.6-84")
set(CELLFRAME_SDK_NATIVE_VERSION "2.6-85")
add_definitions ("-DCELLFRAME_SDK_VERSION=\"${CELLFRAME_SDK_NATIVE_VERSION}\"")
set(DAPSDK_MODULES "")
......
......@@ -242,8 +242,11 @@ void *dap_worker_thread(void *arg)
l_cur->buf_out_size = 0;
l_cur->buf_in_size = 0;
l_cur->flags |= DAP_SOCK_SIGNAL_CLOSE;
l_cur->callbacks.error_callback(l_cur, l_sock_err); // Call callback to process error event
assert(0);
if (l_cur->callbacks.error_callback)
l_cur->callbacks.error_callback(l_cur, l_sock_err); // Call callback to process error event
if (l_cur->fd == 0 || l_cur->fd == -1)
assert_perror(errno);
// If its not null or -1 we should try first to remove it from poll. Assert only if it doesn't help
}
if(l_flag_error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment