* Don't crash attempting to get desc from menu stack
* Remove ring buffer monitor at WFC exit
This commit is contained in:
parent
b075cbae65
commit
a64bbb1635
|
@ -36,11 +36,19 @@ function getActiveConnectionList(authUsersOnly) {
|
|||
const now = moment();
|
||||
|
||||
return _.map(getActiveConnections(authUsersOnly), ac => {
|
||||
let action;
|
||||
try {
|
||||
// attempting to fetch a bad menu stack item can blow up/assert
|
||||
action = _.get(ac, 'currentMenuModule.menuConfig.desc', 'Unknown');
|
||||
} catch(e) {
|
||||
action = 'Unknown';
|
||||
}
|
||||
|
||||
const entry = {
|
||||
node : ac.node,
|
||||
authenticated : ac.user.isAuthenticated(),
|
||||
userId : ac.user.userId,
|
||||
action : _.get(ac, 'currentMenuModule.menuConfig.desc', 'Unknown'),
|
||||
action : action,
|
||||
serverName : ac.session.serverName,
|
||||
isSecure : ac.session.isSecure,
|
||||
};
|
||||
|
|
|
@ -103,6 +103,10 @@ exports.getModule = class WaitingForCallerModule extends MenuModule {
|
|||
}
|
||||
|
||||
leave() {
|
||||
_.remove(Log.log.streams, stream => {
|
||||
return stream.name === 'wfc-ringbuffer';
|
||||
});
|
||||
|
||||
this._stopRefreshing();
|
||||
|
||||
super.leave();
|
||||
|
|
Loading…
Reference in New Issue