避免Heartbeat重置currentResponse (#176)

避免Heartbeat重置currentResponse
This commit is contained in:
scretxc 2023-06-07 13:01:19 +08:00 committed by GitHub
parent 81440000b3
commit 571a16fbf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -23,8 +23,10 @@ function Client:initialize()
self.client.callback = function(_self, command, jsonData)
local cb = fk.client_callback[command]
if command ~= "Heartbeat" and command ~= "StartChangeSelf" and command ~= "ChangeSelf" then
Fk.currentResponsePattern = nil
Fk.currentResponseReason = nil
end
if (type(cb) == "function") then
cb(jsonData)