diff options
Diffstat (limited to 'components/script/dom/websocket.rs')
-rw-r--r-- | components/script/dom/websocket.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/websocket.rs b/components/script/dom/websocket.rs index c6efde14cfc..d7a90eca8fb 100644 --- a/components/script/dom/websocket.rs +++ b/components/script/dom/websocket.rs @@ -429,7 +429,7 @@ impl WebSocketMethods for WebSocket { WebSocketRequestState::Connecting => { //Connection is not yet established /*By setting the state to closing, the open function - will abort connecting the websocket*/ + will abort connecting the websocket*/ self.ready_state.set(WebSocketRequestState::Closing); let address = Trusted::new(self); @@ -588,7 +588,8 @@ impl TaskOnce for MessageReceivedTask { cx, CreateWith::Slice(&data), array_buffer.handle_mut() - ).is_ok() + ) + .is_ok() ); (*array_buffer).to_jsval(cx, message.handle_mut()); |