Guest User

Untitled

a guest
Dec 13th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. void WebSocketServer::didCloseWebSocketServerConnection(WebSocketServerConnection* connection)
  2. {
  3. Deque<OwnPtr<WebSocketServerConnection> >::iterator end = m_connections.end();
  4. for (Deque<OwnPtr<WebSocketServerConnection> >::iterator it = m_connections.begin(); it != end; ++it) {
  5. if (it->get() == connection) {
  6. m_connections.remove(it);
  7. return;
  8. }
  9. }
  10. - ASSERT_NOT_REACHED(); // it reaches this line now if remote page is closed
  11. }
Add Comment
Please, Sign In to add comment