# GHOST session occurs "WebSocket is already in CLOSING or CLOSED state" BUG

**URL:** <https://openvidu.discourse.group/t/ghost-session-occurs-websocket-is-already-in-closing-or-closed-state-bug/373>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [April 1, 2020, 6:46am UTC](https://openvidu.discourse.group/t/ghost-session-occurs-websocket-is-already-in-closing-or-closed-state-bug/373 "2020-04-01T06:46:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robin](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/robin/32/911_2.png) [@robin](https://openvidu.discourse.group/u/robin)\
**Post date:** [April 1, 2020, 6:46am UTC](https://openvidu.discourse.group/t/ghost-session-occurs-websocket-is-already-in-closing-or-closed-state-bug/373/1 "2020-04-01T06:46:34Z")

</div>

I create two session separately and start streaming, And close them correctly from server with proper closing reason in the client. But the problem i’m facing is: **there is another season which is already closed and try to be closed** - and it occurs a error in the client side, `webSocket is already in CLOSING or CLOSED state`.  
Why this happens ? Is openvidu create any ghost session which is closed automatically ? Here is the picture of my console log:

 ![Untitled Diagram](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/ac2f8bd5d48db1bbc690211e75f23069fe7ac49f.png)

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [April 1, 2020, 5:16pm UTC](https://openvidu.discourse.group/t/ghost-session-occurs-websocket-is-already-in-closing-or-closed-state-bug/373/2 "2020-04-01T17:16:42Z")

</div>

How may I replicate the error in any demo of [demos.openvidu.io](http://demos.openvidu.io)?

Which steps do I have to perform?
