Remove pointless events about connection status.

This commit is contained in:
Johannes Mockenhaupt 2017-07-15 02:00:20 +02:00
parent 848a32eade
commit a21da8aba7
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -296,12 +296,10 @@ public class ComboPlugin implements PluginBase, PumpInterface {
private CommandResult runCommand(Command command) {
// TODO use this to dispatch methods to a service thread, like DanaRs executionService
try {
MainApp.bus().post(new EventPumpStatusChanged(EventPumpStatusChanged.CONNECTED));
return ruffyScripter.runCommand(command);
} finally {
lastCmdTime = new Date();
ruffyScripter.disconnect();
MainApp.bus().post(new EventPumpStatusChanged(EventPumpStatusChanged.DISCONNECTED));
}
}