diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 64ee7d7c6..c0937732f 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -42,7 +42,6 @@ struct iguana_info *iguana_coinadd(char *symbol,char *name,cJSON *argjson) struct iguana_info *coin; uint32_t symbolcrc; char *privatechain; int32_t j; struct supernet_info *myinfo = SuperNET_MYINFO(0); if ( (coin= iguana_coinfind(symbol)) == 0 ) { - portable_mutex_lock(&myinfo->allcoins_mutex); if ( (coin= iguana_coinfind(symbol)) == 0 ) { myinfo->allcoins_being_added = 1; @@ -81,7 +80,6 @@ struct iguana_info *iguana_coinadd(char *symbol,char *name,cJSON *argjson) portable_mutex_unlock(&myinfo->allcoins_mutex); myinfo->allcoins_being_added = 0; } - portable_mutex_unlock(&myinfo->allcoins_mutex); if ( (coin= iguana_coinfind(symbol)) == 0 ) printf("error finding justadded.(%s)\n",symbol); }