Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
eb65ab1f
Commit
eb65ab1f
authored
5 years ago
by
alexander.lysikov
Browse files
Options
Downloads
Patches
Plain Diff
fixed the call dap_chain_node_client_t struct after deleting
parent
88f3a19f
Loading
Loading
1 merge request
!24
Support 3689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_chain_node_client.c
+7
-2
7 additions, 2 deletions
dap_chain_node_client.c
with
7 additions
and
2 deletions
dap_chain_node_client.c
+
7
−
2
View file @
eb65ab1f
...
...
@@ -107,8 +107,8 @@ static void stage_status_callback(dap_client_t *a_client, void *a_arg)
static
void
s_stage_status_error_callback
(
dap_client_t
*
a_client
,
void
*
a_arg
)
{
(
void
)
a_arg
;
dap_chain_node_client_t
*
l_node_client
=
a_client
->
_inheritor
;
if
(
DAP_CHAIN_NODE_CLIENT
(
a
_client
)
->
keep_connection
&&
dap_chain_node_client_t
*
l_node_client
=
DAP_CHAIN_NODE_CLIENT
(
a_client
)
;
if
(
l_node_client
&&
l_node
_client
->
keep_connection
&&
(
(
dap_client_get_stage
(
a_client
)
!=
STAGE_STREAM_STREAMING
)
||
(
dap_client_get_stage_status
(
a_client
)
==
STAGE_STATUS_ERROR
)
)
){
log_it
(
L_NOTICE
,
"Some errors happends, current state is %s but we need to return back to STAGE_STREAM_STREAMING"
,
...
...
@@ -321,6 +321,11 @@ void dap_chain_node_client_close(dap_chain_node_client_t *a_client)
if
(
a_client
)
{
// clean client
//dap_client_delete(a_client->client);
pthread_mutex_lock
(
&
a_client
->
wait_mutex
);
a_client
->
client
->
_inheritor
=
NULL
;
// because client->_inheritor == a_client
pthread_mutex_unlock
(
&
a_client
->
wait_mutex
);
pthread_cond_destroy
(
&
a_client
->
wait_cond
);
pthread_mutex_destroy
(
&
a_client
->
wait_mutex
);
DAP_DELETE
(
a_client
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment