MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / close

Method close

src/OpenLoco/src/Network/NetworkBase.cpp:85–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void NetworkBase::close()
86{
87 if (_isClosed)
88 {
89 return;
90 }
91
92 endReceivePacketLoop();
93
94 onClose();
95
96 _sockets.clear();
97 _isClosed = true;
98}

Callers 1

loadG1Function · 0.45

Calls 2

onCloseFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected