mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-27 06:11:47 +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
|
||||
public synchronized void onClose(int closeCode, String message) {
|
||||
try {
|
||||
tokenService().revokeToken(sessionToken);
|
||||
log.info("Session token revoked");
|
||||
|
||||
} catch (ServiceNotFoundException e) {
|
||||
log.error("Unable to reference UiTokenService");
|
||||
}
|
||||
sessionToken = null;
|
||||
|
||||
topoSession.destroy();
|
||||
@ -410,11 +413,7 @@ public class UiWebSocket
|
||||
}
|
||||
|
||||
private UiTokenService tokenService() {
|
||||
UiTokenService service = directory.get(UiTokenService.class);
|
||||
if (service == null) {
|
||||
log.error("Unable to reference UiTokenService");
|
||||
}
|
||||
return service;
|
||||
return directory.get(UiTokenService.class);
|
||||
}
|
||||
|
||||
// sends the collated localization bundle data up to the client.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user