On SIGINT in main menu, don't connect before shutting down
authorPerttu Ahola <celeron55@gmail.com>
Sat, 3 Dec 2011 10:02:27 +0000 (12:02 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 3 Dec 2011 10:02:27 +0000 (12:02 +0200)
src/main.cpp

index 11e1a8dc19ce608354a6a9477d0273e145e3d3da..b7c3ceffe3dfdd57409ba5e4a28a2ce464e43872 100644 (file)
@@ -1631,7 +1631,7 @@ int main(int argc, char *argv[])
                        }
                        
                        // Break out of menu-game loop to shut down cleanly
-                       if(device->run() == false)
+                       if(device->run() == false || kill == true)
                                break;
                        
                        /*