MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Close

Method Close

lib/base/stream.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void Stream::Close()
72{
73 OnDataAvailable.disconnect_all_slots();
74
75 /* Force signals2 to remove the slots, see https://stackoverflow.com/questions/2049291/force-deletion-of-slot-in-boostsignals2
76 * for details. */
77 OnDataAvailable.connect([](const Stream::Ptr&) { });
78}
79
80StreamReadStatus Stream::ReadLine(String *line, StreamReadContext& context, bool may_wait)
81{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected