forked from NG-SD-Plugins/PowerTools
Re-enable dirty echoes to hopefully mitigate #144
This commit is contained in:
parent
655946036d
commit
6b3b1a5966
1 changed files with 3 additions and 3 deletions
|
@ -384,7 +384,7 @@ fn print_messages(msgs: &Vec<String>) {
|
|||
impl ApiMessageHandler {
|
||||
pub fn process_forever(&mut self, settings: &mut Settings) {
|
||||
crate::utility::ioperm_power_ec();
|
||||
//let mut dirty_echo = true; // set everything twice, to make sure PowerTools wins on race conditions
|
||||
let mut dirty_echo = true; // set everything twice, to make sure PowerTools wins on race conditions
|
||||
while let Ok(msg) = self.intake.recv() {
|
||||
let mut messages = vec![msg.to_string()]; // keep messages for logging
|
||||
let mut dirty = self.process(settings, msg);
|
||||
|
@ -393,9 +393,9 @@ impl ApiMessageHandler {
|
|||
dirty |= self.process(settings, msg);
|
||||
}
|
||||
if dirty
|
||||
/*|| dirty_echo */
|
||||
|| dirty_echo
|
||||
{
|
||||
//dirty_echo = dirty; // echo only once
|
||||
dirty_echo = dirty; // echo only once
|
||||
print_messages(&messages);
|
||||
// run on_set
|
||||
if let Err(e) = settings.on_set() {
|
||||
|
|
Loading…
Reference in a new issue