| 628 | } |
| 629 | |
| 630 | void Transfer::stopReceiver(void) |
| 631 | { |
| 632 | { |
| 633 | std::lock_guard<std::mutex> lock(g_receiverMutex); |
| 634 | if (!g_receiverRunning) { |
| 635 | return; |
| 636 | } |
| 637 | } |
| 638 | Server::unregisterHandler("/transfer/info"); |
| 639 | Server::unregisterHandler("/transfer/upload"); |
| 640 | { |
| 641 | std::lock_guard<std::mutex> lock(g_receiverMutex); |
| 642 | g_receiverRunning = false; |
| 643 | } |
| 644 | } |
| 645 | |
| 646 | bool Transfer::receiverRunning(void) |
| 647 | { |
nothing calls this directly
no outgoing calls
no test coverage detected