Skip to content

Commit

Permalink
Missing braces causing connections to close
Browse files Browse the repository at this point in the history
  • Loading branch information
wishdev committed Apr 14, 2011
1 parent bd77b05 commit eb4b33a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/ed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1224,16 +1224,18 @@ void ConnectionDescriptor::Heartbeat()
*/

if (bConnectPending) {
if ((MyEventMachine->GetCurrentLoopTime() - CreatedAt) >= PendingConnectTimeout)
if ((MyEventMachine->GetCurrentLoopTime() - CreatedAt) >= PendingConnectTimeout) {
UnbindReasonCode = ETIMEDOUT;
ScheduleClose (false);
//bCloseNow = true;
}
}
else {
if (InactivityTimeout && ((MyEventMachine->GetCurrentLoopTime() - LastActivity) >= InactivityTimeout))
if (InactivityTimeout && ((MyEventMachine->GetCurrentLoopTime() - LastActivity) >= InactivityTimeout)) {
UnbindReasonCode = ETIMEDOUT;
ScheduleClose (false);
//bCloseNow = true;
}
}
}

Expand Down

0 comments on commit eb4b33a

Please sign in to comment.