Commit eff65792 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Do not close if socket is undefined

parent f90a08d0
...@@ -231,7 +231,9 @@ ...@@ -231,7 +231,9 @@
})\n })\n
\n \n
.declareMethod(\'close\', function () {\n .declareMethod(\'close\', function () {\n
// XXX Of course, this will fail if connection is not open yet...\n if (this.props.socket === undefined) {\n
return;\n
}\n
this.props.socket.close();\n this.props.socket.close();\n
delete this.props.socket;\n delete this.props.socket;\n
});\n });\n
...@@ -374,7 +376,7 @@ ...@@ -374,7 +376,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.18210.63502.24746</string> </value> <value> <string>945.33605.10741.21811</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -392,7 +394,7 @@ ...@@ -392,7 +394,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1440430322.74</float> <float>1441353954.68</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment