Remove timeout during handshake notification when connection was successful

This commit is contained in:
TebbeUbben 2019-02-17 21:58:17 +01:00
parent 361cc158e8
commit 5fb0fe62f4

View file

@ -1535,8 +1535,10 @@ public class LocalInsightPlugin extends PluginBase implements PumpInterface, Con
@Override
public void onStateChanged(InsightState state) {
if (state == InsightState.CONNECTED) statusLoaded = false;
else if (state == InsightState.NOT_PAIRED) {
if (state == InsightState.CONNECTED) {
statusLoaded = false;
MainApp.bus().post(new EventDismissNotification(Notification.INSIGHT_TIMEOUT_DURING_HANDSHAKE));
} else if (state == InsightState.NOT_PAIRED) {
connectionService.withdrawConnectionRequest(this);
statusLoaded = false;
profileBlocks = null;