Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
9b236e53
Commit
9b236e53
authored
Mar 28, 2017
by
jehan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid useless uri parsing when no presence model found for a friend
parent
91c0fc4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
coreapi/friend.c
coreapi/friend.c
+5
-1
No files found.
coreapi/friend.c
View file @
9b236e53
...
...
@@ -115,7 +115,11 @@ static LinphoneFriendPresence * find_presence_model_for_uri_or_tel(const Linphon
ms_warning
(
"Cannot find uri of tel [%s] from friend [%p] because not associated to any Linphone core object"
,
uri_or_tel
,
lf
);
return
NULL
;
}
iterator
=
lf
->
presence_models
;
if
((
iterator
=
lf
->
presence_models
)
==
NULL
)
{
/*no need to move forward, just reutn to avoid useless uri parsing*/
return
NULL
;
};
uri_or_tel_addr
=
linphone_core_interpret_url
(
lf
->
lc
,
uri_or_tel
);
while
(
uri_or_tel_addr
&&
iterator
)
{
...
...
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