Index: openacs-4/packages/xowiki/tcl/chat-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/chat-procs.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/xowiki/tcl/chat-procs.tcl 9 Apr 2006 00:07:10 -0000 1.7 +++ openacs-4/packages/xowiki/tcl/chat-procs.tcl 9 Apr 2006 17:46:37 -0000 1.8 @@ -43,8 +43,10 @@ if {![info exists mode]} { set mode polling - if {[info command ::thread::mutex] ne ""} { - # we seem to have libthread installed, we can use the background delivery thread + if {[info command ::thread::mutex] ne "" && + ![catch {ns_conn contentsentlength}]} { + # we seem to have libthread installed, and the patch for obtaining the tcl-stream + # from a connection thread, so we can use the background delivery thread; # scripted streaming should work everywhere set mode scripted-streaming if {[regexp (firefox) [string tolower [ns_set get [ns_conn headers] User-Agent]]]} {