summaryrefslogtreecommitdiff
path: root/src/netsession.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-04-30 14:10:27 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-04-30 14:10:27 +0000
commit5dba20c49e27d3e3a6aecd35789dc8a90e26fc23 (patch)
tree1f01b5ddcd5ea79191afd944a17eee5ba2e461c3 /src/netsession.cpp
parent46cf9258d20113a48f7d5811ea112df6504dc30e (diff)
downloadmanaserv-5dba20c49e27d3e3a6aecd35789dc8a90e26fc23.tar.gz
manaserv-5dba20c49e27d3e3a6aecd35789dc8a90e26fc23.tar.bz2
manaserv-5dba20c49e27d3e3a6aecd35789dc8a90e26fc23.tar.xz
manaserv-5dba20c49e27d3e3a6aecd35789dc8a90e26fc23.zip
removed the last remains of SDL
Diffstat (limited to 'src/netsession.cpp')
-rw-r--r--src/netsession.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/netsession.cpp b/src/netsession.cpp
index 260a649f..8ce5c8ad 100644
--- a/src/netsession.cpp
+++ b/src/netsession.cpp
@@ -85,12 +85,6 @@ void NetSession::startListen(ConnectionHandler *handler, enet_uint16 port)
LOG_ERROR("pthread_create: " << rc, 0);
exit(4);
}
- /*data->thread = SDL_CreateThread(startListenThread, data);
-
- if (data->thread == NULL) {
- LOG_ERROR("SDL_CreateThread: " << SDL_GetError(), 0);
- exit(4);
- }*/
listeners[port] = data;
}
@@ -110,7 +104,6 @@ void NetSession::stopListen(enet_uint16 port)
// Wait for listen thread to stop and close socket
// Note: Somewhere in this process the ConnectionHandler should receive
// disconnect notifications about all the connected clients.
- //SDL_WaitThread(data->thread, NULL);
enet_host_destroy(data->host);
delete data;
listeners.erase(threadDataI);