summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/main.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2017-01-15 10:59:14 -0500
committer Nathan Woods <npwoods@mess.org>2017-01-15 11:55:33 -0500
commit3b55bebadcb69e82dc768524d1b833d984b1cff1 (patch)
treed2f58052922c3391582378a3957d50e7c048bf1c /src/emu/main.cpp
parentfa6442a5e64bf2dee0e082c25ed10c342b7f1fd0 (diff)
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.
Diffstat (limited to 'src/emu/main.cpp')
-rw-r--r--src/emu/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/main.cpp b/src/emu/main.cpp
index e8e07ea52b1..ea77d976b00 100644
--- a/src/emu/main.cpp
+++ b/src/emu/main.cpp
@@ -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) {