Skip to content

Commit

Permalink
Throttle smtp_consumer() thread
Browse files Browse the repository at this point in the history
  • Loading branch information
RElesgoe authored Aug 29, 2020
1 parent 68f52fd commit c2167e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bnetd/smtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <array>
#include <atomic>
#include <chrono>
#include <cstdint>
#include <ctime>
#include <fstream>
Expand Down Expand Up @@ -162,6 +163,8 @@ namespace pvpgn

curl_multi_handle_mutex.unlock();
}

std::this_thread::sleep_for(std::chrono::seconds(3));
}
}

Expand Down

0 comments on commit c2167e1

Please sign in to comment.