From f36f92eb244f3f38c60656067ffeae178987ce74 Mon Sep 17 00:00:00 2001 From: chrisparker126 Date: Sun, 30 May 2010 07:11:19 +0000 Subject: [PATCH] fixed file rename error git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3034 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3distrib.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/services/p3distrib.cc b/libretroshare/src/services/p3distrib.cc index 4ff45f4a7..65d37f6e5 100644 --- a/libretroshare/src/services/p3distrib.cc +++ b/libretroshare/src/services/p3distrib.cc @@ -1726,6 +1726,8 @@ bool p3GroupDistrib::backUpKeys(const std::list& keysToBackUp } + delete store; + if(!RsDirUtil::renameFile(filenametmp,filename)) { std::ostringstream errlog; @@ -1738,8 +1740,6 @@ bool p3GroupDistrib::backUpKeys(const std::list& keysToBackUp return false; } - delete store; - return ok; }