FredyH / MySQLOO

MySQLOO
GNU Lesser General Public License v2.1
140 stars 55 forks source link

Error: onConnected and onConnectionFailed not getting called after running connect #46

Closed jamie-simmonds closed 4 years ago

jamie-simmonds commented 4 years ago

Using mysqloo 9.6 on Linux Ubuntu 18.04, both via lua_run and in a gamemode

image

Happens both for failed connections (incorrect password) and successful connections where serverInfo() and hostInfo() return correct

FredyH commented 4 years ago

The callbacks are only called if the server is not hibernating, i.e. there needs to be one player on the server or a bot.

jamie-simmonds commented 4 years ago

@FredyH Thanks - That actually makes a lot of sense and spawning a bot immediately fixed the issue.

bigdogmat commented 4 years ago

This can also be resolved setting sv_hibernate_think to 1