summaryrefslogtreecommitdiffstats
path: root/mojo/public/js/bindings/connector.js
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/public/js/bindings/connector.js')
-rw-r--r--mojo/public/js/bindings/connector.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/mojo/public/js/bindings/connector.js b/mojo/public/js/bindings/connector.js
index 51fb7fe..5774598 100644
--- a/mojo/public/js/bindings/connector.js
+++ b/mojo/public/js/bindings/connector.js
@@ -24,9 +24,9 @@ define("mojo/public/js/bindings/connector", [
support.cancelWait(this.readWaitCookie_);
this.readWaitCookie_ = null;
}
- if (this.handle_ != core.kInvalidHandle) {
+ if (this.handle_ != null) {
core.close(this.handle_);
- this.handle_ = core.kInvalidHandle;
+ this.handle_ = null;
}
};