diff --git a/EXE_Redis.cpp b/EXE_Redis.cpp index 544cd7a..cc0c1e3 100644 --- a/EXE_Redis.cpp +++ b/EXE_Redis.cpp @@ -1099,7 +1099,7 @@ ExeRedisAsyncDisconnect( int nIdConnection) // Elimino i Messaggi dalla mappa for ( auto Iter = vAsyncRedisMessages.begin() ; Iter != vAsyncRedisMessages.end() ; ) { - if ( Iter->first.rfind( GetMessageMapKey( nIdConnection, "")) == 0) + if ( Iter->first.compare( GetMessageMapKey( nIdConnection, "")) == 0) Iter = vAsyncRedisMessages.erase( Iter) ; else ++ Iter ; @@ -1259,7 +1259,7 @@ ExeRedisAsyncUnsubscribe( int nIdConnection, const string& sChannel) // Elimino i Messaggi dalla mappa for ( auto Iter = vAsyncRedisMessages.begin() ; Iter != vAsyncRedisMessages.end() ; ) { - if ( Iter->first.rfind( GetMessageMapKey( nIdConnection, sChannel)) == 0) + if ( Iter->first.compare( GetMessageMapKey( nIdConnection, sChannel)) == 0) Iter = vAsyncRedisMessages.erase( Iter) ; else ++ Iter ;