/** * @see android.app.Service#onDestroy() */ @Override public void onDestroy() { // disconnect immediately for (MqttConnection client : connections.values()) { client.disconnect(null, null); } // clear down if (mqttServiceBinder != null) { mqttServiceBinder = null; } unregisterBroadcastReceivers(); if (this.messageStore !=null ) this.messageStore.close(); super.onDestroy(); }
/** * @see android.app.Service#onDestroy() */ @Override public void onDestroy() { // disconnect immediately for (MqttConnection client : connections.values()) { client.disconnect(null, null); } // clear down if (mqttServiceBinder != null) { mqttServiceBinder = null; } unregisterBroadcastReceivers(); if (this.messageStore !=null ) this.messageStore.close(); super.onDestroy(); }
/** * @see Service#onDestroy() */ @Override public void onDestroy() { // disconnect immediately for (MqttConnection client : connections.values()) { client.disconnect(null, null); } // clear down if (mqttServiceBinder != null) { mqttServiceBinder = null; } unregisterBroadcastReceivers(); if (this.messageStore !=null ) this.messageStore.close(); super.onDestroy(); }