cozy-labs / cozy-light

Personal Server Made Easy
http://cozy-labs.github.io/cozy-light/
GNU Affero General Public License v3.0
104 stars 13 forks source link

callback called twice #53

Closed maboiteaspam closed 9 years ago

maboiteaspam commented 9 years ago

Hi,

at https://github.com/cozy-labs/cozy-light/blob/master/lib/cozy-light.js#L528

It misses some sort of break, otherwise it will also call

https://github.com/cozy-labs/cozy-light/blob/master/lib/cozy-light.js#L537

@L528 Should put

return callback();

It will avoid too many braces.

frankrousseau commented 9 years ago

You're right. Thank you for reporting.

frankrousseau commented 9 years ago

Fixed in 734d077924d308a43c75d7157bfc3c9648a416e1