From d294eb5231309e1e41eb02ab36f56a5ad88aac81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CMariusz=20Trela=E2=80=9D?= Date: Mon, 17 Jun 2024 09:55:12 +0200 Subject: [PATCH] Issue #689 - [beekeeper] Beekeeper is unexpectedly closed with an error when `beekeeper.wallet.lock` file is deleted --- programs/beekeeper/beekeeper/beekeeper_instance.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/programs/beekeeper/beekeeper/beekeeper_instance.cpp b/programs/beekeeper/beekeeper/beekeeper_instance.cpp index 1452ef61d5..36fdd49d09 100644 --- a/programs/beekeeper/beekeeper/beekeeper_instance.cpp +++ b/programs/beekeeper/beekeeper/beekeeper_instance.cpp @@ -41,7 +41,7 @@ namespace beekeeper { if( rc.type() == bfs::file_not_found ) { app.generate_interrupt_request(); - FC_ASSERT( false, "Lock file removed while `beekeeper` still running. Terminating."); + elog( "The lock file is removed while `beekeeper` is still running. Terminating." ); } } t->expires_from_now( boost::posix_time::seconds(1) ); @@ -51,8 +51,6 @@ namespace beekeeper { void beekeeper_instance::initialize_lock() { - //This is technically somewhat racy in here -- if multiple keosd are in this function at once. - //I've considered that an acceptable tradeoff to maintain cross-platform boost constructs here { std::ofstream x( lock_path_file.string() ); if( x.fail() )