LocalInsightPlugin crash fix
This commit is contained in:
parent
90a9b09395
commit
6fa05f11c9
1 changed files with 1 additions and 0 deletions
|
@ -937,6 +937,7 @@ public class LocalInsightPlugin extends PluginBase implements PumpInterface, Con
|
|||
@Override
|
||||
public JSONObject getJSONStatus(Profile profile, String profileName) {
|
||||
long now = System.currentTimeMillis();
|
||||
if (connectionService == null) return null;
|
||||
if (System.currentTimeMillis() - connectionService.getLastConnected() > (60 * 60 * 1000)) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue