summaryrefslogtreecommitdiff
path: root/src/stable/protocoltelnet.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2015-08-22 17:57:48 +0000
committerMike Buland <eichlan@xagasoft.com>2015-08-22 17:57:48 +0000
commit13c4e8415e2f86e6dc389d6b53bd54aa1c50d8c2 (patch)
tree16ebd9e80ddbb772c04deb3c50b580fee914ef76 /src/stable/protocoltelnet.cpp
parented7666695f9e01441e829941f4f3d08328f9b53f (diff)
downloadlibbu++-13c4e8415e2f86e6dc389d6b53bd54aa1c50d8c2.tar.gz
libbu++-13c4e8415e2f86e6dc389d6b53bd54aa1c50d8c2.tar.bz2
libbu++-13c4e8415e2f86e6dc389d6b53bd54aa1c50d8c2.tar.xz
libbu++-13c4e8415e2f86e6dc389d6b53bd54aa1c50d8c2.zip
Minor tweak to non-canoninical callback handling. It had the same problem that
the canonical mode had so long ago.
Diffstat (limited to '')
-rw-r--r--src/stable/protocoltelnet.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stable/protocoltelnet.cpp b/src/stable/protocoltelnet.cpp
index 77bc3dc..f6fbd4b 100644
--- a/src/stable/protocoltelnet.cpp
+++ b/src/stable/protocoltelnet.cpp
@@ -269,9 +269,11 @@ void Bu::ProtocolTelnet::onNewData( Bu::Client *pClient )
269 // IAC code or multibyte escape sequence or something, but then again, it 269 // IAC code or multibyte escape sequence or something, but then again, it
270 // shouldn't be called then, and really, shouldn't be, it'll be called soon 270 // shouldn't be called then, and really, shouldn't be, it'll be called soon
271 // enough, when we get the rest of that code. 271 // enough, when we get the rest of that code.
272 if( !bCanonical ) 272 if( !bCanonical && !sDataBuf.isEmpty() )
273 { 273 {
274 gotData( sDataBuf ); 274 Bu::String sDat = sDataBuf;
275 sDataBuf.clear();
276 gotData( sDat );
275 } 277 }
276} 278}
277 279