Loging unhandled msg and avoiding class cast exception.
Change-Id: I4f917cc783918bb7cc00cdbc29393a2b09cceb07
Signed-off-by: Iveta Halanova <ihalanov@cisco.com>
} else if (msg instanceof RouteRefresh) {
this.listener.onMessage(this, msg);
this.sessionStats.updateReceivedMsgRR();
- } else {
- // All others are passed up
+ } else if (msg instanceof Update) {
this.listener.onMessage(this, msg);
this.sync.updReceived((Update) msg);
this.sessionStats.updateReceivedMsgUpd();
+ } else {
+ LOG.warn("Ignoring unhandled message: {}.", msg.getClass());
}
}