save config

This commit is contained in:
badaix 2015-09-03 23:02:30 +02:00
parent 8a684233a2
commit 9200fec700
4 changed files with 24 additions and 1 deletions

View file

@ -152,6 +152,7 @@ void StreamServer::onMessageReceived(ServerSession* connection, const msg::BaseM
client->version = helloMsg.getVersion();
client->connected = true;
gettimeofday(&client->lastSeen, NULL);
Config::instance().save();
json notification = JsonNotification::getJson("Client.OnConnect", client->toJson());
controlServer->send(notification.dump(4));