From 0dc97968422a078126dd9bf575002b335962b42c Mon Sep 17 00:00:00 2001 From: Zachary Dremann Date: Thu, 12 Jun 2014 13:48:49 -0400 Subject: Close right away when connection is closed by remote --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index a707059..27c8c9f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,8 +93,7 @@ impl IrcClient { }, Err(IoError{kind: std::io::TimedOut, ..}) => continue, Err(e) => { - println!("Unable to read line: {}", e); - break; + fail!("Unable to read line: {}", e); } } } -- cgit v1.2.3-54-g00ecf