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 @Override
public void onStateChanged(InsightState state) { public void onStateChanged(InsightState state) {
if (state == InsightState.CONNECTED) statusLoaded = false; if (state == InsightState.CONNECTED) {
else if (state == InsightState.NOT_PAIRED) { statusLoaded = false;
MainApp.bus().post(new EventDismissNotification(Notification.INSIGHT_TIMEOUT_DURING_HANDSHAKE));
} else if (state == InsightState.NOT_PAIRED) {
connectionService.withdrawConnectionRequest(this); connectionService.withdrawConnectionRequest(this);
statusLoaded = false; statusLoaded = false;
profileBlocks = null; profileBlocks = null;