diff options
author | daurnimator <quae@daurnimator.com> | 2014-09-29 13:59:16 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-09-29 13:59:16 -0400 |
commit | acf786ed7dcca32a0ee768fac6f33d35674fc1b6 (patch) | |
tree | 8df3d5f560f6323de29139b602f253e16dddcbeb /net/websocket.lua | |
parent | f03bdbefca10dd64cd70208bf84261fb850d1be8 (diff) | |
parent | 0504583316908806a24c975e9acb775a44d2c317 (diff) | |
download | prosody-acf786ed7dcca32a0ee768fac6f33d35674fc1b6.tar.gz prosody-acf786ed7dcca32a0ee768fac6f33d35674fc1b6.zip |
Merge 0.10->trunk
Diffstat (limited to 'net/websocket.lua')
-rw-r--r-- | net/websocket.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/websocket.lua b/net/websocket.lua index f8daa278..a4274eec 100644 --- a/net/websocket.lua +++ b/net/websocket.lua @@ -134,7 +134,7 @@ function websocket_methods:close(code, reason) log("debug", "closing WebSocket with code %i: %s" , code , tostring(reason)); self.readyState = 2; local handler = self.handler; - handler:write(frames.build_close(code, reason)); + handler:write(frames.build_close(code, reason, true)); -- Do not close socket straight away, wait for acknowledgement from server. self.close_timer = timer.add_task(close_timeout, close_timeout_cb, self); elseif self.readyState == 2 then |