Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void WebSocketServer::didCloseWebSocketServerConnection(WebSocketServerConnection* connection)
- {
- Deque<OwnPtr<WebSocketServerConnection> >::iterator end = m_connections.end();
- for (Deque<OwnPtr<WebSocketServerConnection> >::iterator it = m_connections.begin(); it != end; ++it) {
- if (it->get() == connection) {
- m_connections.remove(it);
- return;
- }
- }
- - ASSERT_NOT_REACHED(); // it reaches this line now if remote page is closed
- }
Add Comment
Please, Sign In to add comment