소스 검색

fix error on rehash/restart when no file socket open

horgh 16 년 전
부모
커밋
db78396141
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      irb.tcl

+ 5 - 0
irb.tcl

@@ -1,5 +1,9 @@
 #
+# 0.2 - ???
+#  - fix error when rehash/restart if socket isnt open
+#
 # 0.1 - May 15 2010
+#  - initial release
 #
 # by horgh (www.summercat.com)
 #
@@ -98,6 +102,7 @@ proc irb::output {} {
 
 # We close channel before restart/rehash
 proc irb::end {args} {
+	if {$irb::irb_chan == ""} { return }
 	close $irb::irb_chan
 	set irb::irb_chan []
 }