Permalink
Browse files

We only need to catch the github event once

  • Loading branch information...
Andrew Appleton
Andrew Appleton committed Feb 1, 2012
1 parent 88aa8f6 commit 16b4b515df4faf89935c3170c81dfdbaf25c5c29
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.coffee
View
@@ -147,7 +147,7 @@ app.post('/github_prh', basicAuth, (req, res) ->
req.on('data', (data) -> body += data )
req.on('end', () ->
g = new Github(body, redis)
- g.on('message', (data) -> io.sockets.emit('message', data))
+ g.once('message', (data) -> io.sockets.emit('message', data))
res.writeHead(200, {'Content-Type': 'text/html'})
res.end('OK')
)

0 comments on commit 16b4b51

Please sign in to comment.