mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
Add assertion that terminate clio (#994)
Fixes #893. Also added termination handler to print backtrace on crash, so fixes #929.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <web/IntervalSweepHandler.h>
|
||||
|
||||
#include <util/Assert.h>
|
||||
#include <util/Constants.h>
|
||||
#include <web/DOSGuard.h>
|
||||
|
||||
@@ -47,9 +48,9 @@ IntervalSweepHandler::~IntervalSweepHandler()
|
||||
void
|
||||
IntervalSweepHandler::setup(web::BaseDOSGuard* guard)
|
||||
{
|
||||
assert(dosGuard_ == nullptr);
|
||||
ASSERT(dosGuard_ == nullptr, "Cannot setup DOS guard more than once");
|
||||
dosGuard_ = guard;
|
||||
assert(dosGuard_ != nullptr);
|
||||
ASSERT(dosGuard_ != nullptr, "DOS guard must be not null");
|
||||
|
||||
createTimer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user