projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23cf502
)
Throw from connection.connect if resolving.
author
Ryan Dahl
<ry@tinyclouds.org>
Tue, 16 Feb 2010 22:38:51 +0000
(14:38 -0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 16 Feb 2010 22:38:51 +0000
(14:38 -0800)
Bug reported by James Golick.
src/node_net.cc
patch
|
blob
|
history
diff --git
a/src/node_net.cc
b/src/node_net.cc
index
d5f5ff6
..
aaa4ddf
100644
(file)
--- a/
src/node_net.cc
+++ b/
src/node_net.cc
@@
-226,7
+226,7
@@
Handle<Value> Connection::Connect(const Arguments& args) {
}
// If connect() is called on an open connection, raise an error.
- if (connection->ReadyState() != EVCOM_INITIALIZED) {
+ if (connection->ReadyState() != EVCOM_INITIALIZED
|| connection->resolving_
) {
Local<Value> exception = Exception::Error(
String::New("Socket is not in CLOSED state."));
return ThrowException(exception);