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

Commit

Permalink
Removing duplicates events
Browse files Browse the repository at this point in the history
Changing process.on to process.once
  • Loading branch information
gordinh committed Feb 26, 2018
1 parent 8666bf5 commit 94e0665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/lib/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ var service = function(name, options) {

then: function(cb) {
console.log('setup service listener');
process.on('message', function(data) {
process.once('message', function(data) {

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

0 comments on commit 94e0665

Please sign in to comment.