io/tcpserver.rb in trepanning-0.1.4 vs io/tcpserver.rb in trepanning-0.1.6

- old
+ new

@@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2011 Rocky Bernstein <rockyb@rubyforge.net> +# Copyright (C) 2011, 2012 Rocky Bernstein <rockyb@rubyforge.net> # Debugger Server Input/Output interface. require 'socket' require_relative '../app/default' # For host and port require_relative '../io' @@ -82,10 +82,11 @@ # writeline, no newline is added to the end to `str'. Also # msg doesn't have to be a string. def write(msg) wait_for_connect() unless connected? # FIXME: do we have to check the size of msg and split output? - @session.print(pack_msg(msg)) + pack_msg = pack_msg(msg) + @session.print(pack_msg) end def writeline(msg) write(msg + "\n") end