From 1b18b53cfd84886c52e718550c1c0511f24b6802 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Wed, 6 Nov 2013 00:09:37 -0800 Subject: [PATCH] removed force_crash by default --- libraries/voxel-server-library/src/VoxelServer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/voxel-server-library/src/VoxelServer.cpp b/libraries/voxel-server-library/src/VoxelServer.cpp index 3072cf9599..1053564f3b 100644 --- a/libraries/voxel-server-library/src/VoxelServer.cpp +++ b/libraries/voxel-server-library/src/VoxelServer.cpp @@ -111,6 +111,7 @@ void VoxelServer::initMongoose(int port) { int VoxelServer::civetwebRequestHandler(struct mg_connection* connection) { const struct mg_request_info* ri = mg_get_request_info(connection); +#ifdef FORCE_CRASH if (strcmp(ri->uri, "/force_crash") == 0 && strcmp(ri->request_method, "GET") == 0) { qDebug() << "About to force a crash!\n"; int foo; @@ -121,6 +122,7 @@ int VoxelServer::civetwebRequestHandler(struct mg_connection* connection) { mg_printf(connection, "%s", "did it crash....\r\n"); return 1; } +#endif if (strcmp(ri->uri, "/") == 0 && strcmp(ri->request_method, "GET") == 0) { uint64_t checkSum;