Created
September 6, 2017 12:28
-
-
Save hasantayyar/50981bef30056e777934f81886b0aba9 to your computer and use it in GitHub Desktop.
meteor - workaround that kills the instance, if the reconnect has failed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MongoInternals.defaultRemoteCollectionDriver().mongo.db.s.topology.on('reconnectFailed', err => { | |
console.error(err.stack) | |
process.exit(1) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment