From 61e42b1f8390839d5e29d3f87605adc0a61dc87e Mon Sep 17 00:00:00 2001 From: welch Date: Mon, 27 Mar 2000 21:22:11 +0000 Subject: Added catch around fileevent to fix test suite failure --- library/http/http.tcl | 4 ++-- library/http2.1/http.tcl | 4 ++-- library/http2.3/http.tcl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/library/http/http.tcl b/library/http/http.tcl index d1907a8..16a6d05 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.26 2000/03/22 22:49:57 sandeep Exp $ +# RCS: @(#) $Id: http.tcl,v 1.27 2000/03/27 21:22:11 welch Exp $ package provide http 2.3 ;# This uses Tcl namespaces @@ -332,7 +332,7 @@ proc http::geturl { url args } { if {$state(-timeout) > 0} { fileevent $s writable [list http::Connect $token] http::wait $token - fileevent $s writable {} + catch {fileevent $s writable {}} if {![string equal $state(status) "connect"]} { return $token } diff --git a/library/http2.1/http.tcl b/library/http2.1/http.tcl index d1907a8..16a6d05 100644 --- a/library/http2.1/http.tcl +++ b/library/http2.1/http.tcl @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.26 2000/03/22 22:49:57 sandeep Exp $ +# RCS: @(#) $Id: http.tcl,v 1.27 2000/03/27 21:22:11 welch Exp $ package provide http 2.3 ;# This uses Tcl namespaces @@ -332,7 +332,7 @@ proc http::geturl { url args } { if {$state(-timeout) > 0} { fileevent $s writable [list http::Connect $token] http::wait $token - fileevent $s writable {} + catch {fileevent $s writable {}} if {![string equal $state(status) "connect"]} { return $token } diff --git a/library/http2.3/http.tcl b/library/http2.3/http.tcl index d1907a8..16a6d05 100644 --- a/library/http2.3/http.tcl +++ b/library/http2.3/http.tcl @@ -9,7 +9,7 @@ # See the file "license.terms" for information on usage and # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.26 2000/03/22 22:49:57 sandeep Exp $ +# RCS: @(#) $Id: http.tcl,v 1.27 2000/03/27 21:22:11 welch Exp $ package provide http 2.3 ;# This uses Tcl namespaces @@ -332,7 +332,7 @@ proc http::geturl { url args } { if {$state(-timeout) > 0} { fileevent $s writable [list http::Connect $token] http::wait $token - fileevent $s writable {} + catch {fileevent $s writable {}} if {![string equal $state(status) "connect"]} { return $token } -- cgit v0.12