Fixed timeout calculation for sleep. Added missing call to socket_startup/socket_cleanup.

This commit is contained in:
lotodore
2007-02-18 16:04:00 +00:00
parent 793ea40f9b
commit 389252aac2
2 changed files with 15 additions and 10 deletions
+6 -1
View File
@@ -26,6 +26,7 @@
#include "session.h"
#include "guiwrapper.h"
#include <net/socket_startup.h>
#include <cstdlib>
#include <ctime>
@@ -36,6 +37,7 @@ class GuiWrapper;
int main( int argc, char **argv )
{
socket_startup();
srand( time(0) );
@@ -50,5 +52,8 @@ int main( int argc, char **argv )
Session theFirst(myGuiInterface);
myGuiInterface->setSession(&theFirst);
return a.exec();
int retVal = a.exec();
socket_cleanup();
return retVal;
}