sources/main.cpp

changeset 51
481073b016a9
parent 31
b5b5a6a96d91
child 58
d175243ad169
--- a/sources/main.cpp	Tue Dec 16 00:05:27 2014 +0200
+++ b/sources/main.cpp	Tue Dec 16 00:15:44 2014 +0200
@@ -35,8 +35,6 @@
 #include "huffman/huffman.h"
 #include "interface.h"
 
-static bool g_shouldExit = false;
-
 // -------------------------------------------------------------------------------------------------
 //
 FUNCTION
@@ -60,9 +58,6 @@
 	{
 		for (;;)
 		{
-			if (g_shouldExit)
-				break;
-
 			fd_set fdset;
 			int highest = 0;
 			timeval timeout;
@@ -98,11 +93,3 @@
 
 	return EXIT_SUCCESS;
 }
-
-// -------------------------------------------------------------------------------------------------
-//
-FUNCTION
-request_exit() -> void
-{
-	g_shouldExit = true;
-}

mercurial