Remove timeout during handshake notification when connection was successful
This commit is contained in:
parent
361cc158e8
commit
5fb0fe62f4
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue