Permalink
Browse files

Fixing issue of ready event

  • Loading branch information...
1 parent c1d3223 commit 72c78babeaacbe4cb888ee479c04a48ff42564b0 @mariano committed Oct 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 binding.cc
View
@@ -115,7 +115,7 @@ void node_db::Binding::connectFinished(connect_request_t* request) {
argv[0] = v8::Local<v8::Value>::New(v8::Null());
argv[1] = server;
- request->binding->Emit("ready", 1, argv);
+ request->binding->Emit("ready", 1, argv[1]);
} else {
argv[0] = v8::String::New(request->error != NULL ? request->error : "(unknown error)");

0 comments on commit 72c78ba

Please sign in to comment.