diff --git a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/BulletsManager.java b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/BulletsManager.java index f619b03..28e3d06 100644 --- a/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/BulletsManager.java +++ b/app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/models/BulletsManager.java @@ -44,6 +44,7 @@ this.resources = fragment; } + @Override public void setInstanceId(String id) { this.instanceId = id; } @@ -61,7 +62,7 @@ @Override public void update(double interval) { nextConnectRenaimdTime -= interval; - if (nextConnectRenaimdTime <= 0) { + if (nextConnectRenaimdTime <= 0 && instanceId != null) { nextConnectRenaimdTime = CONNECT_INTERVAL; con = new BulletGetConnection(instanceId); con.setCallBack(this);