1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 02:14:26 +01:00

Write first tokenupdate on session initialization

This commit is contained in:
Ralf Ramsauer 2015-09-25 13:11:02 +02:00
parent b8cb8f9876
commit 69dcbe6b59

View File

@ -110,6 +110,7 @@ static void session(tcp::socket &&sock)
response .message = "";
sock.write_some(boost::asio::buffer(response.toJson()),
error);
sock.write_some(boost::asio::buffer(logic->getClientMessage().toJson()));
while (run) {
std::unique_lock<std::mutex> lock(mutex);