Skip to content

Commit 970dbd1

Browse files
committed
correct order
1 parent 1902488 commit 970dbd1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/log.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,19 @@ VOID NTAPI _app_logthread (
14001400
ptr_log->remote_addr_str = _app_formataddress (ptr_log->af, ptr_log->protocol, &ptr_log->remote_addr, 0, 0);
14011401
ptr_log->local_addr_str = _app_formataddress (ptr_log->af, ptr_log->protocol, &ptr_log->local_addr, 0, 0);
14021402

1403+
// display notification
1404+
if (is_notificationenabled)
1405+
{
1406+
if (ptr_app && !ptr_log->is_allow && is_exludeblocklist)
1407+
{
1408+
if (_app_getappinfo (ptr_app, INFO_IS_SILENT, &is_silent, sizeof (BOOLEAN)))
1409+
{
1410+
if (!is_silent)
1411+
_app_notify_addobject (hwnd, ptr_log, ptr_app);
1412+
}
1413+
}
1414+
}
1415+
14031416
// write log to a file
14041417
if (is_logenabled)
14051418
_app_logwrite (ptr_log);
@@ -1418,19 +1431,6 @@ VOID NTAPI _app_logthread (
14181431
// write to a ui
14191432
_app_logwrite_ui (hwnd, ptr_log);
14201433
}
1421-
1422-
// display notification
1423-
if (is_notificationenabled)
1424-
{
1425-
if (ptr_app && !ptr_log->is_allow && is_exludeblocklist)
1426-
{
1427-
if (_app_getappinfo (ptr_app, INFO_IS_SILENT, &is_silent, sizeof (BOOLEAN)))
1428-
{
1429-
if (!is_silent)
1430-
_app_notify_addobject (hwnd, ptr_log, ptr_app);
1431-
}
1432-
}
1433-
}
14341434
}
14351435
}
14361436

0 commit comments

Comments
 (0)