It's a bit simplistic to call that "trying to join Hitler", IMO. There is
much to disagree with when it comes to Soviet foreign policy in the lead-up to WW2 (how they participated in dismantling Poland, for example), but it's fairly complicated all the same. Don't forget that the Soviets were already, rightly or wrongly, skeptical of Western intentions, due to the foreign interventions against the Bolsheviks in the Russian Civil War. Then the Soviets watched the West sell out Czechoslovakia in Munich, when, at least on the surface, Stalin offered "a million men" to defend them against Germany (this should be taken with a grain of salt, since that also means a million men in Poland). If they were so quick to sell out their democratic ally to the Nazis, what would they do to help the communist Soviet Union, whom (as far as the Soviets were concerned) they had already tried to destroy two decades earlier?
That doesn't excuse the Molotov-Ribbentrop Pact or any further discussions, but context is everything.