소스 검색

ping check forced on double connection

Paul Klumpp 12 년 전
부모
커밋
0e4c87bd6a
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      em_server.rb

+ 4 - 1
em_server.rb

@@ -368,7 +368,10 @@ module InterconnectionPointProtocolHandler
         if online(username)
           put_log "SYS User '#{username}' tried to double connect. Say bye bye."
           send_data "SYS Hey '#{username}', only one connection allowed. Bye.\n"
-          EventMachine.add_timer 1, proc { close_connection }
+          EventMachine.add_timer 1, proc {
+            close_connection
+            write_user("PING check forced", username)
+          }
 
           return false
         end