From 27561842e77bfbad6e78db23c9ae00a2484f69e8 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sat, 21 Feb 2015 13:16:57 -0500 Subject: [PATCH] 2015-02-21 Fred Gleason * Fixed a bug in 'ripcd/swauthority.cpp' that failed to log notification when reconnecting. --- ChangeLog | 3 +++ ripcd/swauthority.cpp | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 11091714..51d326f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14762,3 +14762,6 @@ enumeration in 'lib/rdmatrix.cpp' and 'lib/rdmatrix.h'. * Implemented a switcher driver for systems using Software Authority Protocol in 'ripcd/swauthority.cpp' and 'ripcd/swauthority.h'. +2015-02-21 Fred Gleason + * Fixed a bug in 'ripcd/swauthority.cpp' that failed to log + notification when reconnecting. diff --git a/ripcd/swauthority.cpp b/ripcd/swauthority.cpp index 148f35e1..130a2982 100644 --- a/ripcd/swauthority.cpp +++ b/ripcd/swauthority.cpp @@ -288,7 +288,7 @@ void SoftwareAuthority::DispatchCommand() // LogLine(RDConfig::LogNotice,QString().sprintf("RECEIVED: %s",(const char *)swa_buffer)); QString line_in=swa_buffer; - QString section=line_in.lower(); + QString section=line_in.lower().replace(">>",""); // // Startup Sequence. Get the input and output lists. @@ -311,12 +311,12 @@ void SoftwareAuthority::DispatchCommand() switch(swa_istate) { case 0: // No section selected - if(section==">>begin sourcenames - 1") { + if(section=="begin sourcenames - 1") { swa_istate=1; swa_inputs=0; return; } - if(section==">>begin destnames - 1") { + if(section=="begin destnames - 1") { swa_istate=2; swa_outputs=0; return;