Skip to content

Commit

Permalink
fix connecting gauge
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Fendt <Florian.Fendt@bosch-si.com>
  • Loading branch information
ffendt committed Jul 18, 2019
1 parent 484bd17 commit d6bcd6f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ private void onTransition(final BaseClientState from, final BaseClientState to)
}
if (to == CONNECTING) {
clientConnectingGauge.increment();
} else if (from == CONNECTING) {
}
// dont use else if since we might use goTo(CONNECTING) if in CONNECTING state. This will cause another onTransition.
if (from == CONNECTING) {
clientConnectingGauge.decrement();
}
}
Expand Down

0 comments on commit d6bcd6f

Please sign in to comment.