MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / stopReceiver

Method stopReceiver

switch/source/transfer.cpp:607–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607void Transfer::stopReceiver(void)
608{
609 {
610 std::lock_guard<std::mutex> lock(g_receiverMutex);
611 if (!g_receiverRunning) {
612 return;
613 }
614 }
615 Server::unregisterHandler("/transfer/info");
616 Server::unregisterHandler("/transfer/upload");
617 {
618 std::lock_guard<std::mutex> lock(g_receiverMutex);
619 g_receiverRunning = false;
620 }
621}
622
623bool Transfer::receiverRunning(void)
624{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected