Permalink
Browse files

flush doesn't fix the race condition...

  • Loading branch information...
1 parent 8dab7ee commit 75332d86220c2e5288eccb76417b3956a3bfad75 @zquestz committed Jul 29, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 simplechat.js
View
2 simplechat.js
@@ -109,8 +109,6 @@ if (Meteor.is_client) {
username = registerbox.val(),
now = (new Date()).getTime();
- Meteor.flush();
-
if (Template.register.warning() === "") {
var user_id = Users.insert({name: username, last_seen: now});
Session.set("user_id", user_id);

0 comments on commit 75332d8

Please sign in to comment.