Skip to content

Commit

Permalink
Update connections.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
Nalinc authored May 1, 2018
1 parent aaec5db commit 066c973
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/connections.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ Meteor.methods
if (token = Accounts._getLoginToken(this.connection.id))
# This $pulls tokens from services.resume.loginTokens, and should work
# in the same way that Accounts._expireTokens effects cleanup.
Accounts.destroyToken(userId, token)
Meteor.setTimeout ->
Accounts.destroyToken(userId, token)
, 1000

# return true to auto submit the HIT
return true
Expand Down

2 comments on commit 066c973

@mizzao
Copy link

@mizzao mizzao commented on 066c973 Jul 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch looks like it might be a useful fix for TurkServer#28. Would you be willing to open up a PR?

@Nalinc
Copy link
Owner Author

@Nalinc Nalinc commented on 066c973 Jul 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mizzao Thanks for noticing this. I opened a PR to fix TurkServer#28. Changes are based on the discussions we had under that issue's thread.

Please sign in to comment.