mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Fix minor issue when logging out
This commit is contained in:
@@ -20,8 +20,8 @@ local function tryLogin(charInfo, tries)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if g_game.isOnline() then
|
if g_game.isOnline() then
|
||||||
g_game.safeLogout()
|
|
||||||
if tries == 1 then
|
if tries == 1 then
|
||||||
|
g_game.safeLogout()
|
||||||
loadBox = displayCancelBox(tr('Please wait'), tr('Logging out...'))
|
loadBox = displayCancelBox(tr('Please wait'), tr('Logging out...'))
|
||||||
end
|
end
|
||||||
scheduleEvent(function() tryLogin(charInfo, tries+1) end, 250)
|
scheduleEvent(function() tryLogin(charInfo, tries+1) end, 250)
|
||||||
|
Reference in New Issue
Block a user