mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-26 22:01:13 +01:00
ONOS-6785
ServiceNotFoundException in ONOS shutdown Change-Id: I793a6fc34a8b7e9a3b7ff0010c9adfaa3e7527c5
This commit is contained in:
parent
2e97be0449
commit
b09fdf3415
@ -214,9 +214,12 @@ public class UiWebSocket
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void onClose(int closeCode, String message) {
|
public synchronized void onClose(int closeCode, String message) {
|
||||||
tokenService().revokeToken(sessionToken);
|
try {
|
||||||
log.info("Session token revoked");
|
tokenService().revokeToken(sessionToken);
|
||||||
|
log.info("Session token revoked");
|
||||||
|
} catch (ServiceNotFoundException e) {
|
||||||
|
log.error("Unable to reference UiTokenService");
|
||||||
|
}
|
||||||
sessionToken = null;
|
sessionToken = null;
|
||||||
|
|
||||||
topoSession.destroy();
|
topoSession.destroy();
|
||||||
@ -410,11 +413,7 @@ public class UiWebSocket
|
|||||||
}
|
}
|
||||||
|
|
||||||
private UiTokenService tokenService() {
|
private UiTokenService tokenService() {
|
||||||
UiTokenService service = directory.get(UiTokenService.class);
|
return directory.get(UiTokenService.class);
|
||||||
if (service == null) {
|
|
||||||
log.error("Unable to reference UiTokenService");
|
|
||||||
}
|
|
||||||
return service;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// sends the collated localization bundle data up to the client.
|
// sends the collated localization bundle data up to the client.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user