Before, minetest.request_shutdown didn't shut down
singleplayer instances or server instances from the server tab.
This commit fixes this. Fixes #3489.
&& client->checkPrivilege("fast");
#endif
- while (device->run() && !(*kill || g_gamecallback->shutdown_requested)) {
+ while (device->run()
+ && !(*kill || g_gamecallback->shutdown_requested
+ || server->getShutdownRequested())) {
/* Must be called immediately after a device->run() call because it
* uses device->getTimer()->getTime()