]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/sg_netChat.cxx
Ensure individual log-level setting works.
[simgear.git] / simgear / io / sg_netChat.cxx
index 597bb47e19c6dc589c2f36fa371ae0e7007669da..4de7716393cf884b4346214d4786dc924f095a7d 100644 (file)
@@ -16,7 +16,7 @@
  
      You should have received a copy of the GNU Library General Public
      License along with this library; if not, write to the Free Software
-     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA
  
      For further information visit http://plib.sourceforge.net
 
@@ -26,7 +26,8 @@
 #include <simgear/io/sg_netChat.hxx>
 
 #include <cstring> // for strdup
-         
+#include <cstdlib>
+
 namespace  simgear {
 
 void
@@ -114,8 +115,8 @@ NetChat::handleBufferRead (NetBuffer& in_buffer)
             collectIncomingData (in_buffer.getData(),in_buffer.getLength());
             in_buffer.remove ();
         }
-      
-      return;
+        
+        continue;
     }
     
     int terminator_len = strlen(terminator);