Permalink
Browse files

Remove race condition in User insert to mongo

  • Loading branch information...
1 parent 8231577 commit b81840116305ab045d92e6d9aaafbbb2d281477e @zquestz committed Jul 29, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 simplechat.js
View
@@ -97,7 +97,6 @@ if (Meteor.is_client) {
if (Template.register.warning() === "") {
Session.set("user", username);
Session.set("init_chat", true);
- Users.insert({name: username, last_seen: now});
}
event.preventDefault();

0 comments on commit b818401

Please sign in to comment.