|
# File rbot/ircsocket.rb, line 59
def set_sendq(newfreq)
debug "changing sendq frequency to #{newfreq}"
@qmutex.synchronize do
@sendfreq = newfreq
if newfreq == 0 && @qthread
clearq
Thread.kill(@qthread)
@qthread = false
elsif(newfreq != 0 && !@qthread)
@qthread = Thread.new { spooler }
end
end
end
|