Update to latest madtty.
[apps/madmutt.git] / main.c
diff --git a/main.c b/main.c
index af2141e..cc432d9 100644 (file)
--- a/main.c
+++ b/main.c
@@ -18,7 +18,6 @@
 #include <lib-lib/lib-lib.h>
 
 #include <sys/utsname.h>
-#include <pthread.h>
 
 #include <lib-lua/lib-lua.h>
 #include <lib-sys/mutt_signal.h>
@@ -190,7 +189,6 @@ int main (int argc, char **argv)
   int version = 0;
   int i;
   int explicit_folder = 0;
-  pthread_t pt;
 
   /* initialize random number for tmp file creation */ 
   srand48((unsigned int) time (NULL));
@@ -309,7 +307,6 @@ int main (int argc, char **argv)
   el_initialize();
   mutt_init (flags & M_NOSYSRC, commands);
   string_list_wipe(&commands);
-  pthread_create(&pt, NULL, &el_loop, NULL);
 
   if (!option(OPTNOCURSES)) {
       ui_layout_init();
@@ -504,8 +501,6 @@ int main (int argc, char **argv)
     mutt_endwin (Errorbuf);
   }
 
-  pthread_cancel(pt);
-  pthread_join(pt, NULL);
   luaM_shutdown();
   mutt_sasl_shutdown();
   el_shutdown();