Skip to content
Discussion options

You must be logged in to vote

How could I have missed such a simple solution?

Despite setting DeepInstance to "" on cleanup, it actually becomes null for some reason. So by adding the null check, the new instance is created properly.

//Cleanup
userMap.get(id).setDeepInstance("");

//Create instance
if (userMap.get(id).deepInstance === "" || userMap.get(id).deepInstance === null) {
userMap.get(id).setDeepInstance(createNewDeepgram());
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by brewcrew059
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants