Made a service to enable auto-starting.

This commit is contained in:
2018-08-12 12:00:38 +00:00
parent 0de7ee2fd7
commit 5c908d8530
10 changed files with 33 additions and 10 deletions

View File

@@ -27,7 +27,10 @@ void Channel::handle(const shared_ptr<U2FMessage> uMsg)
else if (this->lockedState != ChannelLockedState::Unlocked)
throw runtime_error{ "Channel in incorrect (locked) state to handle request" };
return U2F_CMD::get(uMsg)->respond(this->cid);
auto cmd = U2F_CMD::get(uMsg);
if (cmd)
return cmd->respond(this->cid);
}
void Channel::init(const ChannelInitState newInitState)