mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-09 20:58:02 -05:00
CommandParser: synchronize access to getInstance()
This commit is contained in:
parent
84fdcd8249
commit
4d3a7c2ecc
@ -126,7 +126,7 @@ public class CommandParser
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static CommandParser getInstance()
|
public static synchronized CommandParser getInstance()
|
||||||
{
|
{
|
||||||
if (instance == null) {
|
if (instance == null) {
|
||||||
instance = new CommandParser();
|
instance = new CommandParser();
|
||||||
|
Loading…
Reference in New Issue
Block a user