tDo the datasave() as early as possible in shutdown() - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3fc56c719dc66f3da1d9587e58c7f3bfe6b2f305
 (DIR) parent 9046382217acceb141e6199fd3a35c8721dbe9fc
 (HTM) Author: sin <sin@2f30.org>
       Date:   Mon,  1 Dec 2014 15:18:30 +0000
       
       Do the datasave() as early as possible in shutdown()
       
       Diffstat:
         M ratox.c                             |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -1922,6 +1922,8 @@ shutdown(void)
        
                logmsg("Shutdown\n");
        
       +        datasave();
       +
                /* Friends */
                for (f = TAILQ_FIRST(&friendhead); f; f = ftmp) {
                        ftmp = TAILQ_NEXT(f, entry);
       t@@ -1959,8 +1961,6 @@ shutdown(void)
                if (idfd != -1)
                        close(idfd);
        
       -        datasave();
       -
                toxav_kill(toxav);
                tox_kill(tox);
        }