Don't set running = true until properties have been loaded.

This commit is contained in:
akwizgran
2018-02-08 15:03:49 +00:00
parent 3cf61e7b3d
commit cfe0d9a656

View File

@@ -134,8 +134,8 @@ abstract class BluetoothPlugin<SS> implements DuplexPlugin, EventListener {
} catch (IOException e) {
throw new PluginException(e);
}
running = true;
updateProperties();
running = true;
loadSettings();
if (shouldAllowContactConnections()) {
if (isAdapterEnabled()) bind();