Fix operator

This commit is contained in:
Changhua 2024-06-30 16:23:12 +08:00
parent 9101b37162
commit 5481e6d3ec

View File

@ -222,7 +222,7 @@ void DisableLog()
}
gIsLogging = false;
if (isMH_Initialized and !gIsLogging and !gIsListening and !gIsListeningPyq) {
if (isMH_Initialized && !gIsLogging && !gIsListening && !gIsListeningPyq) {
status = MH_Uninitialize();
if (status != MH_OK) {
LOG_ERROR("MH_Uninitialize failed: {}", to_string(status));
@ -284,7 +284,7 @@ void UnListenMessage()
}
gIsListening = false;
if (isMH_Initialized and !gIsLogging and !gIsListening and !gIsListeningPyq) {
if (isMH_Initialized && !gIsLogging && !gIsListening && !gIsListeningPyq) {
status = MH_Uninitialize();
if (status != MH_OK) {
LOG_ERROR("MH_Uninitialize failed: {}", to_string(status));
@ -346,7 +346,7 @@ void UnListenPyq()
}
gIsListeningPyq = false;
if (isMH_Initialized and !gIsLogging and !gIsListening and !gIsListeningPyq) {
if (isMH_Initialized && !gIsLogging && !gIsListening && !gIsListeningPyq) {
status = MH_Uninitialize();
if (status != MH_OK) {
LOG_ERROR("MH_Uninitialize failed: {}", to_string(status));