… | |
… | |
74 | } |
74 | } |
75 | } |
75 | } |
76 | } |
76 | } |
77 | |
77 | |
78 | # clean up old temp maps regularly |
78 | # clean up old temp maps regularly |
79 | Event->timer ( |
79 | our $CLEAN_RANDOM_MAPS = cf::periodic 3600, Coro::unblock_sub { |
80 | reentrant => 0, |
80 | clean_random_maps; |
81 | data => cf::WF_AUTOCANCEL, |
81 | }; |
82 | interval => 3600, |
|
|
83 | after => 60, |
|
|
84 | cb => Coro::unblock_sub { clean_random_maps }, |
|
|
85 | ); |
|
|
86 | |
82 | |
87 | # map generator stresstest, never enable under normal circumstances |
83 | # map generator stresstest, never enable under normal circumstances |
88 | if (0) { |
84 | if (0) { |
89 | cf::async { |
85 | cf::async { |
90 | my $seed = 0; |
86 | my $seed = 0; |