summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-07 22:17:13 +0000
committerwakou <wakou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-07 22:17:13 +0000
commit3081543be9a6b8b78839b79903cc1e87115e1a5a (patch)
tree8a2a3deca1e0d1a3f027b848c95b8762ca5cd8a7 /lib
parentf7df392eba90ccccdf9411910e86effead5ab1de (diff)
* lib/net/telnet.rb: waitfor(): improvement. thanks to
nobu.nakada@nifty.ne.jp git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/net/telnet.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb
index 0a520eaabb..91c4faedbe 100644
--- a/lib/net/telnet.rb
+++ b/lib/net/telnet.rb
@@ -467,8 +467,8 @@ module Net
begin
c = @sock.sysread(1024 * 1024)
@dumplog.log_dump('<', c) if @options.has_key?("Dump_log")
- c = rest + c
if @options["Telnetmode"]
+ c = rest + c
if Integer(c.rindex(/#{IAC}#{SE}/no)) <
Integer(c.rindex(/#{IAC}#{SB}/no))
buf = preprocess(c[0 ... c.rindex(/#{IAC}#{SB}/no)])