From 10091bbca1380a1d8e3b9d61b8c175490036af5b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 2 Dec 2016 22:21:55 +0300 Subject: old shit died now there's no need to create fake services & events --- protocols/MRA/src/MraAvatars.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/MRA') diff --git a/protocols/MRA/src/MraAvatars.cpp b/protocols/MRA/src/MraAvatars.cpp index 4e4183c1f3..74c8009b29 100644 --- a/protocols/MRA/src/MraAvatars.cpp +++ b/protocols/MRA/src/MraAvatars.cpp @@ -19,7 +19,7 @@ const LPSTR lpcszContentType[9] = struct MRA_AVATARS_QUEUE : public FIFO_MT { HANDLE hNetlibUser; - HANDLE hThreadEvents[MAXIMUM_WAIT_OBJECTS]; + HANDLE hThreadEvents[64]; int iThreadsCount, iThreadsRunning; }; @@ -67,8 +67,8 @@ DWORD CMraProto::MraAvatarsQueueInitialize(HANDLE *phAvatarsQueueHandle) pmraaqAvatarsQueue->iThreadsCount = db_get_dw(NULL, MRA_AVT_SECT_NAME, "WorkThreadsCount", MRA_AVT_DEFAULT_WRK_THREAD_COUNTS); if (pmraaqAvatarsQueue->iThreadsCount == 0) pmraaqAvatarsQueue->iThreadsCount = 1; - if (pmraaqAvatarsQueue->iThreadsCount > MAXIMUM_WAIT_OBJECTS) - pmraaqAvatarsQueue->iThreadsCount = MAXIMUM_WAIT_OBJECTS; + if (pmraaqAvatarsQueue->iThreadsCount > 64) + pmraaqAvatarsQueue->iThreadsCount = 64; pmraaqAvatarsQueue->iThreadsRunning = 0; for (int i = 0; i < pmraaqAvatarsQueue->iThreadsCount; i++) -- cgit v1.2.3