Fix several bugs found in new server scanner code (#146)

This commit is contained in:
Lee *!* Clagett
2024-10-25 19:28:35 -04:00
committed by Lee *!* Clagett
parent cd62461578
commit 8080159fc8
4 changed files with 90 additions and 27 deletions

View File

@@ -27,6 +27,7 @@
#pragma once
#include <boost/asio/coroutine.hpp>
#include <boost/asio/dispatch.hpp>
#include <boost/asio/write.hpp>
#include <chrono>
#include <memory>
@@ -167,7 +168,7 @@ namespace lws { namespace rpc { namespace scanner
if (msg.empty())
{
self->cleanup();
boost::asio::dispatch(self->strand_, [self] () { self->cleanup(); });
return;
}