From: ueno Date: Sun, 14 Dec 2003 04:07:25 +0000 (+0000) Subject: Fixed. X-Git-Tag: riece-0_1_7~12 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47ef6d50d9d302dcfbb685e357235d57979b19fd;p=elisp%2Friece.git Fixed. --- diff --git a/lisp/riece-async.el b/lisp/riece-async.el index c39ccbe..30eb658 100644 --- a/lisp/riece-async.el +++ b/lisp/riece-async.el @@ -50,11 +50,9 @@ (defcustom riece-async-server-program '("\ require 'io/nonblock' - socket = TCPSocket.new(" host ", " service ") $stdout.write(\"NOTICE CONNECTED #{$$}\r\n\") $stdout.flush - $stdout.nonblock = true trap('STOP', 'IGNORE') trap('TSTP', 'IGNORE') @@ -72,7 +70,7 @@ loop do rescue Errno::EAGAIN end end - if rfds.delete(socket) + if rfds.include?(socket) line = socket.gets(\"\r\n\") break unless line if line =~ /^(?::[^ ]+ +)?PING +(.+)\r\n/i @@ -86,7 +84,7 @@ loop do end end end - if rfds.delete($stdin) + if rfds.include?($stdin) line = $stdin.gets(\"\r\n\") break unless line socket.write(line) @@ -96,12 +94,12 @@ end socket.close exit ") - "Ruby program of asynchronous proxy" + "Ruby program of asynchronous proxy." :type 'list :group 'riece-async) (defcustom riece-async-max-buffer-size 65535 - "Maximum size of the write buffer" + "Maximum size of the write buffer." :type 'integer :group 'riece-async)