Ticket #20: ping_fix.patch
| File ping_fix.patch, 0.8 kB (added by nex, 3 years ago) |
|---|
-
lib/rbot/ircbot.rb
old new 355 355 end 356 356 357 357 puts "disconnected" 358 @last_ping = nil 359 @timer.remove @pong_timer unless @pong_timer.nil? 360 @timer.remove @ping_timer unless @ping_timer.nil? 358 361 @channels.clear 359 362 @socket.clearq 360 363 … … 569 572 # before the next one come around.. 570 573 def start_server_pings 571 574 # stop existing timers if running 575 @last_ping = nil 572 576 unless @ping_timer.nil? 573 577 @timer.remove @ping_timer 574 578 @ping_timer = nil … … 593 597 rescue 594 598 debug "couldn't shutdown connection (already shutdown?)" 595 599 end 600 @last_ping = nil 596 601 end 597 602 end 598 603 }
