mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Removing unnecessary callback
I'm doing this in response to a compilation error on MSVC 2015. As far as I can tell, this is a bug in the compiler. My basis for asserting this is that placing the following declaration within the 'endpoint.on_open = <<lambda>>' gives the same compilation error: const std::function<void(void)> mycallback = [](void) {}; Whereas moving that logic outside of the 'endpoint.on_open = <<lambda>>' does not give an error. Normally I don't like working around buggy compilers, but in this case the callback is supposed to be optional anyways.
This commit is contained in:
parent
fa6442a5e6
commit
3b55bebadc
@ -182,7 +182,7 @@ void machine_manager::start_http_server()
|
||||
endpoint.on_open = [&](auto connection) {
|
||||
auto send_stream = std::make_shared<webpp::ws_server::SendStream>();
|
||||
*send_stream << "update_machine";
|
||||
m_wsserver->send(connection, send_stream, [](const std::error_code& ec) { });
|
||||
m_wsserver->send(connection, send_stream);
|
||||
};
|
||||
|
||||
m_server->on_upgrade = [this](auto socket, auto request) {
|
||||
|
Loading…
Reference in New Issue
Block a user