Commit 09cdcc3f authored by nanahira's avatar nanahira

fix

parent e2819e7c
......@@ -2079,6 +2079,9 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
_async.auto({
match_permit: (done) ->
if client.closed
done()
return
if(!settings.modules.arena_mode.check_permit)
done(null, null)
return
......@@ -2102,6 +2105,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
return
get_user: (done) ->
if client.closed
done()
return
if id = users_cache[client.name]
secret = id % 65535 + 1
......@@ -2113,6 +2117,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
original: decrypted_buffer,
decrypted: decrypted_buffer
})
return
#TODO: query database directly, like preload.
request
......
......@@ -2610,6 +2610,10 @@
};
_async.auto({
match_permit: function(done) {
if (client.closed) {
done();
return;
}
if (!settings.modules.arena_mode.check_permit) {
done(null, null);
return;
......@@ -2638,6 +2642,7 @@
get_user: function(done) {
var decrypted_buffer, i, id, len2, m, ref2, secret;
if (client.closed) {
done();
return;
}
if (id = users_cache[client.name]) {
......@@ -2653,6 +2658,7 @@
original: decrypted_buffer,
decrypted: decrypted_buffer
});
return;
}
}
request({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment