Skip to content

Commit c5f7a52

Browse files
committed
Fix a bug that could prevent later EMDK initialization
1 parent a790aa8 commit c5f7a52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DeviceIdentifiersWrapper/src/main/java/com/zebra/deviceidentifierswrapper/DIProfileManagerCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public class ErrorHolder
5656
// Provides full error description string
5757
public String msErrorString = "";
5858

59+
// To prevent multiple initializations at the same time
5960
private boolean bInitializing = false;
6061

6162
// Status Listener implementation (ensure that we retrieve the profile manager asynchronously
@@ -172,6 +173,7 @@ public void run() {
172173
delta = new Date().getTime() - startDate;
173174
logMessage("Delta in ms since first EMDK retrieval try: " + delta + "ms stops at " + DIHelper.MAX_EMDK_TIMEOUT_IN_MS + "ms", EMessageType.DEBUG);
174175
}
176+
bInitializing = false;
175177
logMessage("Could not retrieve EMDK Manager after waiting " + DIHelper.WAIT_PERIOD_BEFORE_RETRY_EMDK_RETRIEVAL_IN_MS/DIHelper.SEC_IN_MS + " seconds. Please contact your administrator or check logcat for any EMDK related error.", EMessageType.ERROR);
176178
}
177179
});

0 commit comments

Comments
 (0)