Skip to content

Commit

Permalink
updated the use of deasync
Browse files Browse the repository at this point in the history
  • Loading branch information
abbr committed Mar 30, 2014
1 parent a41ff7b commit 215bfa1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/daos/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ try {
}

while(sites === undefined){
require('deasync').sleep(100);
require('deasync').runLoopOnce();
}

exports.getSitesObj = function() {
Expand Down
2 changes: 1 addition & 1 deletion lib/daos/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ try {
}

while(users === undefined){
require('deasync').sleep(100);
require('deasync').runLoopOnce();
}
// used internally; not accessible via req
exports.getUsers = function() {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "form-mailer-service",
"description": "FormMailer is a service application emailing forms posted by users from a registered web site",
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"author": {
"name": "Fred"
Expand All @@ -18,7 +18,7 @@
"mongoose": "~3.8.0",
"password-hash": "~1.2.1",
"underscore": "~1.5.2",
"deasync": "~0.0.3"
"deasync": "~0.0.6"
},
"devDependencies": {
"grunt": "~0.4.1",
Expand Down

0 comments on commit 215bfa1

Please sign in to comment.