summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e280ede)
raw | patch | inline | side by side (parent: e280ede)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Mon, 5 Jun 2023 17:42:36 +0000 (17:42 +0000) | ||
committer | Dmitry D. Chernov <blackdoomer@yandex.ru> | |
Tue, 6 Jun 2023 02:47:53 +0000 (12:47 +1000) |
src/mastersrv/master.c | patch | blob | history |
diff --git a/src/mastersrv/master.c b/src/mastersrv/master.c
index 920d2c49b191e9498c1c7c1e36d00ecc78826372..6573cc62337cd76c634b40626bf940ee069b2775 100644 (file)
--- a/src/mastersrv/master.c
+++ b/src/mastersrv/master.c
enet_uint8 msgid = 0;
ENetEvent event;
while (running) {
- while (enet_host_service(ms_host, &event, 10) > 0) {
+ while (enet_host_service(ms_host, &event, 500) > 0) {
const time_t now = time(NULL);
const bool filtered = !event.peer || (ms_spam_cap && spam_filter(event.peer, now));