Properly cancel timeout on compilation error in ParallelCompiler #7428 (#7429)
Properly cancel timeout on compilation error in ParallelCompiler #7428 (#7429)

The :timed_out message was not cancelled properly when compilation failed in ParallelCompiler. This meant the timeout message would be delivered even after compilation completed. This could be problematic when invoking compilation programmatically via e.g. Mix.Task.run("compile", ["--return-errors"]) since it means that the calling process, depending on the implemenation, might crash unexpectedly or get its inbox filled with messages.

The fix simply calls the cancel_waiting_timer when a compilation error has ocurred in the same way it is called in other similar cases.
elixir-lang/elixir,joshprice/elixir,lexmag/elixir,ggcampinho/elixir,pedrosnk/elixir,lexmag/elixir,kelvinst/elixir,ggcampinho/elixir,kimshrier/elixir,pedrosnk/elixir,michalmuskala/elixir,kimshrier/elixir,kelvinst/elixir