mirror of
https://github.com/Telecominfraproject/wlan-cloud-owls.git
synced 2026-01-27 10:22:52 +00:00
23 lines
535 B
C++
23 lines
535 B
C++
//
|
|
// Created by stephane bourque on 2023-04-12.
|
|
//
|
|
#include <Poco/NObserver.h>
|
|
|
|
#include "OWLSclient.h"
|
|
#include "SimulationRunner.h"
|
|
#include "SimStats.h"
|
|
#include "OWLSclientEvents.h"
|
|
|
|
namespace OpenWifi::OWLSClientEvents {
|
|
|
|
void CrashLog([[
|
|
maybe_unused]] std::lock_guard<std::mutex> &ClientGuard, const std::shared_ptr<OWLSclient> &Client, SimulationRunner *Runner) {
|
|
if(!Runner->Running()) {
|
|
return;
|
|
}
|
|
if(Client->Valid_) {
|
|
Runner->Report().ev_crashlog++;
|
|
}
|
|
}
|
|
|
|
} |