Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
3c0f2a03
Commit
3c0f2a03
authored
Mar 03, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: don't restart or zero a timeout when we change state
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
be3e6c27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common-fun.c
proto-standard/common-fun.c
+2
-2
No files found.
proto-standard/common-fun.c
View file @
3c0f2a03
...
...
@@ -87,14 +87,14 @@ int st_com_execute_slave(struct pp_instance *ppi)
if
(
ret
<
0
)
return
ret
;
if
(
pp_timeout
_z
(
ppi
,
PP_TO_ANN_RECEIPT
))
{
if
(
pp_timeout
(
ppi
,
PP_TO_ANN_RECEIPT
))
{
ppi
->
frgn_rec_num
=
0
;
if
(
DSDEF
(
ppi
)
->
clockQuality
.
clockClass
!=
PP_CLASS_SLAVE_ONLY
&&
(
ppi
->
role
!=
PPSI_ROLE_SLAVE
))
{
ppi
->
next_state
=
PPS_MASTER
;
}
else
{
ppi
->
next_state
=
PPS_LISTENING
;
pp_timeout_
restart_annrec
(
ppi
);
pp_timeout_
set
(
ppi
,
PP_TO_ANN_RECEIPT
);
}
}
return
0
;
...
...
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