Skip to content
Snippets Groups Projects
Commit 6d6e60be authored by Luigi Rizzo's avatar Luigi Rizzo
Browse files

operator != also works between booleans...


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 7173b2cf
No related branches found
No related tags found
No related merge requests found
......@@ -11687,8 +11687,7 @@ static void handle_response_peerpoke(struct sip_pvt *p, int resp, struct sip_req
was_reachable = peer->lastms > 0 && peer->lastms <= peer->maxms;
is_reachable = pingtime <= peer->maxms;
statechanged = peer->lastms == 0 /* yes, unknown before */
|| ( !was_reachable && is_reachable)
|| ( was_reachable && !is_reachable );
|| was_reachable != is_reachable;
 
peer->lastms = pingtime;
peer->call = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment