gamespy_query 0.2.0pre7 → 0.2.0pre8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gamespy_query/socket_master.rb +2 -2
- data/lib/gamespy_query/version.rb +1 -1
- metadata +1 -1
@@ -87,8 +87,8 @@ module GamespyQuery
|
|
87
87
|
dat = master.process list
|
88
88
|
|
89
89
|
ded = "1"
|
90
|
-
gm_dat = dedicated_only || sm_dedicated_only ? dat.
|
91
|
-
sm = GamespyQuery::SocketMaster.new(gm_dat)
|
90
|
+
gm_dat = dedicated_only || sm_dedicated_only ? dat.select{|item| item[:gamedata] && item[:gamedata][:dedicated] == ded } : dat
|
91
|
+
sm = GamespyQuery::SocketMaster.new(gm_dat.keys)
|
92
92
|
sockets = sm.process!
|
93
93
|
sockets.select{|s| s.valid? }.each do |s|
|
94
94
|
begin
|