diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-10-11 23:26:44 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-10-11 23:26:44 +0000 |
commit | 6d6e60be7936697244e8b6b392bd5e43f1807599 (patch) | |
tree | c0a29d6a31eeefbce7d7568033150c36fabd2cb0 /channels/chan_sip.c | |
parent | 7173b2cf2e0b392ed812dd8c0fe13d994b32dc52 (diff) |
operator != also works between booleans...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7057c8181..9e3f8c1ff 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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; |