MCPcopy Create free account
hub / github.com/Snapchat/Valdi / onDisconnected

Method onDisconnected

valdi/src/valdi/runtime/Debugger/TCPClient.cpp:206–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204};
205
206void TCPClientDisconnectListenerImpl::onDisconnected(const Ref<ITCPConnection>& /*connection*/, const Error& error) {
207 auto client = _client;
208 if (client != nullptr) {
209 client->clearConnection();
210 }
211 _listener->onDisconnected(error);
212 _client = nullptr;
213}
214
215TCPClient::TCPClient() : _impl(makeShared<TCPClientImpl>()) {}
216

Callers 7

disconnectMethod · 0.45
prepareLaunchFunction · 0.45
_attemptToAttachMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
closeMethod · 0.45
connectMethod · 0.45

Calls 1

clearConnectionMethod · 0.80

Tested by

no test coverage detected