Skip to content
This repository was archived by the owner on May 3, 2019. It is now read-only.

Commit 22211c5

Browse files
Merge pull request #109 from matrix-io/lm/duplicateFix
Removing duplicates events
2 parents 8666bf5 + 94e0665 commit 22211c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/lib/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ var service = function(name, options) {
189189

190190
then: function(cb) {
191191
console.log('setup service listener');
192-
process.on('message', function(data) {
192+
process.once('message', function(data) {
193193

194194
// console.log('RECOG SERVICE THEN', data)
195195
if (data.eventType === 'service-emit' &&

0 commit comments

Comments
 (0)