Paul Klumpp 12 anni fa
parent
commit
a0ce6e827c
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 6 2
      em_server.rb

+ 6 - 2
em_server.rb

@@ -455,10 +455,14 @@ class GameServers
 
   def get_cool_dns(iphost, ipport)
     put_log "get_cool_dns drin"
-    @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
+    cool_dns = @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
+    put_log "cool_dns for #{iphost}:#{ipport} is: #{cool_dns}"
+    return cool_dns
   rescue
     scanserver("#{iphost}:#{ipport}", "qw")
-    @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
+    cool_dns = @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
+    put_log "cool_dns for #{iphost}:#{ipport} is: #{cool_dns}"
+    return cool_dns
   end
 
   private # all following methods are private