This commit is contained in:
hrxiang
2021-09-26 09:19:32 +08:00
parent 30aff96389
commit b035d28ac2
2 changed files with 8 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ public class CommonUtil {
runMainThreadReturnError(result, String.valueOf(errorCode), errorMessage, errorDetails);
}
public static <T> void emitEvent(String method, String type, Long errCode, String errMsg, T data) {
public synchronized static <T> void emitEvent(String method, String type, Long errCode, String errMsg, T data) {
runMainThread(new Runnable() {
@Override
public void run() {