acpc_table_manager 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b01eeb98e36af6aaad15520f0f7e0b1cbe27aef
|
4
|
+
data.tar.gz: 6b2c92ed0052a4f763e62efb2455ae8a832a16ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 380bb1209589d2f15cc80577ba447a785f32da37b1c19e7d4971c9a16ef0160368f4626587b4353be5d8a172656b424139b4ae2f20d5b3bd38316d6bf415f74b
|
7
|
+
data.tar.gz: b9d1dee53a14dd36aba2108ff55bfd3c9ae734df5e6c87a717d4a1345d1b68294f60a4a29f12c9c97b0fe9436d98b3cc7db5e830abe673c910e7bcc8478b3aee
|
@@ -21,7 +21,9 @@ module AcpcTableManager
|
|
21
21
|
if game_definition_key
|
22
22
|
@table_queues[game_definition_key] ||= ::AcpcTableManager::TableQueue.new(game_definition_key)
|
23
23
|
@table_queues[game_definition_key].my_matches.not_running.and.not_started.each do |m|
|
24
|
-
@table_queues[game_definition_key].
|
24
|
+
unless @table_queues[game_definition_key].running_matches[m.id.to_s]
|
25
|
+
@table_queues[game_definition_key].enqueue! m.id.to_s, m.dealer_options
|
26
|
+
end
|
25
27
|
end
|
26
28
|
else
|
27
29
|
::AcpcTableManager.exhibition_config.games.keys.each do |game_definition_key|
|
@@ -282,11 +282,26 @@ module AcpcTableManager
|
|
282
282
|
|
283
283
|
def kill_matches!
|
284
284
|
log __method__
|
285
|
+
|
286
|
+
Match.running.and.old(AcpcTableManager.config.match_lifespan_s).each do |m|
|
287
|
+
log(
|
288
|
+
__method__,
|
289
|
+
{
|
290
|
+
old_running_match_id_being_killed: m.id.to_s
|
291
|
+
}
|
292
|
+
)
|
293
|
+
|
294
|
+
kill_match! m.id.to_s
|
295
|
+
end
|
296
|
+
|
285
297
|
running_matches_array = @running_matches.to_a
|
286
298
|
running_matches_array.each_index do |i|
|
287
299
|
match_id, match_info = running_matches_array[i]
|
288
300
|
|
289
|
-
unless (
|
301
|
+
unless (
|
302
|
+
AcpcDealer::dealer_running?(match_info[:dealer]) &&
|
303
|
+
Match.id_exists?(match_id)
|
304
|
+
)
|
290
305
|
log(
|
291
306
|
__method__,
|
292
307
|
{
|