Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fbe8d5ff
authored
Mar 02, 2015
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_network_c: fixed crash on disconnect
parent
916bd026
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mtapi_network_c/src/embb_mtapi_network.c
+6
-2
No files found.
mtapi_network_c/src/embb_mtapi_network.c
View file @
fbe8d5ff
...
...
@@ -158,7 +158,7 @@ static void embb_mtapi_network_task_complete(
assert
(
err
==
4
);
err
=
embb_mtapi_network_buffer_push_back_rawdata
(
&
send_buf
,
local_task
->
result_size
,
local_task
->
result_buffer
);
assert
(
err
==
local_task
->
result_size
);
assert
(
err
==
(
int
)
local_task
->
result_size
);
err
=
embb_mtapi_network_socket_sendbuffer
(
&
network_task
->
socket
,
&
send_buf
);
...
...
@@ -213,6 +213,10 @@ static int embb_mtapi_network_thread(void * args) {
err
=
embb_mtapi_network_socket_recvbuffer_sized
(
socket
,
&
buffer
,
1
);
if
(
err
==
0
)
{
// there was some socket error, ignore
continue
;
}
assert
(
err
==
1
);
err
=
embb_mtapi_network_buffer_pop_front_int8
(
&
buffer
,
&
operation
);
...
...
@@ -500,7 +504,7 @@ static void network_task_start(
assert
(
err
==
4
);
err
=
embb_mtapi_network_buffer_push_back_rawdata
(
send_buf
,
local_task
->
arguments_size
,
local_task
->
arguments
);
assert
(
err
==
local_task
->
arguments_size
);
assert
(
err
==
(
int
)
local_task
->
arguments_size
);
err
=
embb_mtapi_network_socket_sendbuffer
(
&
network_action
->
socket
,
send_buf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment