session: start tracking open state
Start tracking in the session whether the state is open.
Change-Id: Ifae9456ba8357370c27962605675dbe0caa787c7
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/firmware_handler.cpp b/firmware_handler.cpp
index 3f255ac..dbff3cf 100644
--- a/firmware_handler.cpp
+++ b/firmware_handler.cpp
@@ -252,6 +252,7 @@
curr->flags = flags;
curr->dataHandler = d->handler;
curr->imageHandler = h->handler;
+ curr->state = Session::State::open;
lookup[session] = curr;