# # # patch "network.cc" # from [ad6fa7e6d3746f7a3e99b3f9fd0cfa580c81889a] # to [4dae756e7bfeee6b6a6036bf01f0c6d1c05b0f16] # ============================================================ --- network.cc ad6fa7e6d3746f7a3e99b3f9fd0cfa580c81889a +++ network.cc 4dae756e7bfeee6b6a6036bf01f0c6d1c05b0f16 @@ -198,7 +198,8 @@ public: utf8 const & addr, app_state & app) : my_voice(voice), input(true), output(true), - app(app), peer_id(addr()), str(str) + app(app), peer_id(addr()), str(str), + last_io_time(::time(NULL)) { } @@ -220,12 +221,14 @@ public: state read_some() { input.read_some_from(str); + last_io_time = ::time(NULL); return state::NONE; } state write_some() { output.write_some_to(str); + last_io_time = ::time(NULL); return state::NONE; }