| 605 | } |
| 606 | |
| 607 | void 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 | |
| 623 | bool Transfer::receiverRunning(void) |
| 624 | { |
nothing calls this directly
no outgoing calls
no test coverage detected