diff --git a/libretroshare/src/gxstrans/p3gxstrans.cc b/libretroshare/src/gxstrans/p3gxstrans.cc index c57b24fbc..c58a514bb 100644 --- a/libretroshare/src/gxstrans/p3gxstrans.cc +++ b/libretroshare/src/gxstrans/p3gxstrans.cc @@ -33,7 +33,8 @@ const uint32_t p3GxsTrans::MAX_DELAY_BETWEEN_CLEANUPS = 900; // every 15 mins. C p3GxsTrans::~p3GxsTrans() { - p3Config::saveConfiguration(); + // (cyril) this cannot be called here! There's chances the thread that saves configs will be dead already! + //p3Config::saveConfiguration(); { RS_STACK_MUTEX(mIngoingMutex); diff --git a/libretroshare/src/pqi/p3cfgmgr.cc b/libretroshare/src/pqi/p3cfgmgr.cc index f7f7f6ebf..890b8d3aa 100644 --- a/libretroshare/src/pqi/p3cfgmgr.cc +++ b/libretroshare/src/pqi/p3cfgmgr.cc @@ -340,7 +340,6 @@ bool p3Config::saveConfiguration() bool p3Config::saveConfig() { - bool cleanup = true; std::list toSave; saveList(cleanup, toSave); @@ -355,6 +354,7 @@ bool p3Config::saveConfig() std::string cfgFname = Filename(); std::string signFname = Filename() + ".sgn"; + std::cerr << "(II) Saving configuration file " << cfgFname << std::endl; uint32_t bioflags = BIN_FLAGS_HASH_DATA | BIN_FLAGS_WRITEABLE; uint32_t stream_flags = BIN_FLAGS_WRITEABLE;