Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iotivity-lite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IoTivity
iotivity-lite
Commits
09c7f925
Commit
09c7f925
authored
Oct 07, 2020
by
Kishen Maloor
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'essen' into fargo
Signed-off-by:
Kishen Maloor
<
kishen.maloor@intel.com
>
parents
2ddaaba6
14daed99
Pipeline
#1157
passed with stage
in 5 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
api/cloud/oc_cloud_manager.c
api/cloud/oc_cloud_manager.c
+2
-1
api/cloud/oc_cloud_rd.c
api/cloud/oc_cloud_rd.c
+4
-0
No files found.
api/cloud/oc_cloud_manager.c
View file @
09c7f925
...
...
@@ -115,6 +115,7 @@ static void
cloud_start_process
(
oc_cloud_context_t
*
ctx
)
{
ctx
->
retry_count
=
0
;
ctx
->
retry_refresh_token_count
=
0
;
if
(
ctx
->
store
.
status
==
OC_CLOUD_INITIALIZED
)
{
oc_set_delayed_callback
(
ctx
,
cloud_register
,
session_timeout
[
0
]);
...
...
@@ -497,7 +498,7 @@ refresh_token(void *data)
if
(
cannotConnect
)
{
cloud_set_last_error
(
ctx
,
CLOUD_ERROR_REFRESH_ACCESS_TOKEN
);
}
oc_set_delayed_callback
(
ctx
,
cloud_logi
n
,
oc_set_delayed_callback
(
ctx
,
refresh_toke
n
,
session_timeout
[
ctx
->
retry_refresh_token_count
]);
}
...
...
api/cloud/oc_cloud_rd.c
View file @
09c7f925
...
...
@@ -251,6 +251,10 @@ void
cloud_rd_manager_status_changed
(
oc_cloud_context_t
*
ctx
)
{
if
(
ctx
->
store
.
status
&
OC_CLOUD_LOGGED_IN
)
{
if
(
ctx
->
store
.
status
&
OC_CLOUD_REFRESHED_TOKEN
)
{
// when refresh occurs we don't want to publish resources.
return
;
}
publish_published_resources
(
ctx
);
delete_resources
(
ctx
,
false
);
oc_remove_delayed_callback
(
ctx
,
publish_published_resources
);
...
...
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