tweaks to topic locking

v1.18.x
Julian Lam 11 years ago
parent 08d130893c
commit abdb4c34ef

@ -56,10 +56,12 @@ var RDB = require('./redis.js'),
status: 'ok'
});
socket.emit('api:topic.lock', {
status: 'ok',
tid: tid
});
if (socket) {
socket.emit('api:topic.lock', {
status: 'ok',
tid: tid
});
}
}
}
@ -72,10 +74,12 @@ var RDB = require('./redis.js'),
status: 'ok'
});
socket.emit('api:topic.unlock', {
status: 'ok',
tid: tid
});
if (socket) {
socket.emit('api:topic.unlock', {
status: 'ok',
tid: tid
});
}
}
}
@ -129,10 +133,12 @@ var RDB = require('./redis.js'),
status: 'ok'
});
socket.emit('api:topic.pin', {
status: 'ok',
tid: tid
});
if (socket) {
socket.emit('api:topic.pin', {
status: 'ok',
tid: tid
});
}
}
}
@ -147,10 +153,12 @@ var RDB = require('./redis.js'),
status: 'ok'
});
socket.emit('api:topic.unpin', {
status: 'ok',
tid: tid
});
if (socket) {
socket.emit('api:topic.unpin', {
status: 'ok',
tid: tid
});
}
}
}

Loading…
Cancel
Save