Skip to content

Commit

Permalink
Issue #689 - [beekeeper] Beekeeper is unexpectedly closed with an err…
Browse files Browse the repository at this point in the history
…or when `beekeeper.wallet.lock` file is deleted
  • Loading branch information
Mariusz-Trela authored and vogel76 committed Jun 17, 2024
1 parent e940029 commit d294eb5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions programs/beekeeper/beekeeper/beekeeper_instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) );
Expand All @@ -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() )
Expand Down

0 comments on commit d294eb5

Please sign in to comment.