Skip to content

Commit 24d5a05

Browse files
committed
Fixed warning message about pending tasks
1 parent af4eb81 commit 24d5a05

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ GMOD_MODULE_OPEN() {
207207

208208
GMOD_MODULE_CLOSE() {
209209
for (int tryNum = 0;; tryNum++) {
210+
if (AsyncIO::Tasks.empty())
211+
break;
212+
210213
for (const auto& task : AsyncIO::Tasks) {
211214
g_pFullFileSystem->AsyncFinish(task->handle);
212215
}

0 commit comments

Comments
 (0)