From 3a2b4265d7c095c39e89887de4d92f0dd7da6c7e Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <PromyLOPh@lavabit.com>
Date: Sat, 4 Apr 2009 15:52:53 +0200
Subject: Forgot to close fifo...

---
 src/main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/main.c b/src/main.c
index 270e00f..93fa317 100644
--- a/src/main.c
+++ b/src/main.c
@@ -272,11 +272,14 @@ int main (int argc, char **argv) {
 		}
 	}
 
+	/* destroy everything (including the world...) */
 	if (player.url != NULL) {
 		free (player.url);
 		pthread_join (playerThread, NULL);
 	}
-	/* destroy everything (including the world...) */
+	if (polls[1].fd != -1) {
+		close (polls[1].fd);
+	}
 	PianoDestroy (&ph);
 	WardrobeDestroy (&wh);
 	curl_global_cleanup ();
-- 
cgit v1.2.3