Handle KNOT_MSG_UNREGISTER_REQ message on STATE_ONLINE
and STATE_RUNNING states.
diff --git a/src/knot_thing_protocol.c b/src/knot_thing_protocol.c
index cb01384..301a6e4 100644
--- a/src/knot_thing_protocol.c
+++ b/src/knot_thing_protocol.c
@@ -451,6 +451,10 @@
 		}
 		break;
 
+	case KNOT_MSG_UNREGISTER_REQ:
+		handle_unregister();
+		break;
+
 	default:
 		/* Invalid command, ignore */
 		break;