summaryrefslogtreecommitdiffstats
path: root/library/http/http.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-11 07:28:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-11 07:28:14 (GMT)
commitf796d623675cfb8a59b1c190470f785c61b90a8e (patch)
treef50e689312394cf955d4247d6236507827fc2fcd /library/http/http.tcl
parentf5ac592def2fc9aed2314cfa3015e377247d599c (diff)
downloadtcl-f796d623675cfb8a59b1c190470f785c61b90a8e.zip
tcl-f796d623675cfb8a59b1c190470f785c61b90a8e.tar.gz
tcl-f796d623675cfb8a59b1c190470f785c61b90a8e.tar.bz2
Use $index<0 in stead of $index==-1 consistantly
Diffstat (limited to 'library/http/http.tcl')
-rw-r--r--library/http/http.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 192867e..4117f44 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -544,7 +544,7 @@ proc http::CloseSocket {s {token {}}} {
} else {
set map [array get socketMapping]
set ndx [lsearch -exact $map $s]
- if {$ndx != -1} {
+ if {$ndx >= 0} {
incr ndx -1
set connId [lindex $map $ndx]
}