it bought the Soviets crucial time to move their industries which were all very close to the border of Poland, they moved all of them up into the mountains. The Soviets may have been able to win at that time still but feared these industries were very vulnerable.
Plus they were already at war with fascist Japan at the time. The pact was so the Soviet Union didn’t have to fight a two-front war against fascists in their European and Asian borders at the same time. The Soviet Union would then go on to sign a similar non-aggression pact with fascist Japan right before fascist Germany invaded the Soviet Union. And once fascist Germany was defeated, the Soviet Union would then violate their non-aggression pact with fascist Japan by invading Manchuria.
Plus they were already at war with fascist Japan at the time. The pact was so the Soviet Union didn’t have to fight a two-front war against fascists in their European and Asian borders at the same time. The Soviet Union would then go on to sign a similar non-aggression pact with fascist Japan right before fascist Germany invaded the Soviet Union. And once fascist Germany was defeated, the Soviet Union would then violate their non-aggression pact with fascist Japan by invading Manchuria.