Roxen.git / server / etc / modules / WebSocket.pike

version» Context lines:

Roxen.git/server/etc/modules/WebSocket.pike:48:   protected void destroy() {    if (ws_keepalive) {    remove_call_out(ws_keepalive);    }       if (id) {    id->end();    }    id = 0;    -  ws_handle_queue = UNDEFINED; +  ws_msg_queue = UNDEFINED;   }      //! Called to end a socket instead of destructing it. This method will   //! ensure that there are no outstanding handler requests before   //! destructing it.   void end() {    is_ended = 1;       object key = ws_handler_mutex->lock();