Skip to content
Snippets Groups Projects
Commit 0cf7b9ae authored by deuce's avatar deuce
Browse files

Finish getting the select() out... thought this was already gone.

parent 99661e63
No related branches found
No related tags found
No related merge requests found
......@@ -113,9 +113,6 @@ while(!connected) {
}
// Main loop
socks = new Array;
socks.push(sock);
socks.push(client.socket);
while(!quit) {
if(!sock.is_connected || !connected) {
alert("Lost connection");
......@@ -139,13 +136,10 @@ while(!quit) {
clean_exit();
}
ready=socket_select(socks, 1);
for(thissock in ready) {
if(sock.poll(.01))
recieve_command();
else
screen.update();
}
if(sock.poll(.01))
recieve_command();
else
screen.update();
}
sock.close();
clean_exit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment