Skip to content

Commit

Permalink
Fix client crashing when connecting to server
Browse files Browse the repository at this point in the history
My commit

e2d54c9 "shutdown when requested from lua in singleplayer too"

broke minetest's feature to connect to servers. The client crashed
after the connection init was complete.

Thanks to @sofar for reporting the bug.

Fixes #3498.
  • Loading branch information
est31 committed Dec 29, 2015
1 parent 9719ade commit a142e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.cpp
Expand Up @@ -1818,7 +1818,7 @@ void Game::run()

while (device->run()
&& !(*kill || g_gamecallback->shutdown_requested
|| server->getShutdownRequested())) {
|| (server && server->getShutdownRequested()))) {

/* Must be called immediately after a device->run() call because it
* uses device->getTimer()->getTime()
Expand Down

0 comments on commit a142e4f

Please sign in to comment.