Bug 578578 - prevent AutoBuildJob to lock workspace while interrupted

Interrupted flag was checked to late - only in in the building loop when
the workspace operation was already started. Instead the check should
also done before to avoid a race condition to get the lock

Change-Id: If0c8d3289c53a0f13b9ea71b5bc8627fd2d1ad27
Signed-off-by: Joerg Kubitz <jkubitz-eclipse@gmx.de>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.resources/+/190715
Tested-by: Platform Bot <platform-bot@eclipse.org>
1 file changed