TechnikEmpire / HttpFilteringEngine

Transparent filtering TLS proxy.
Mozilla Public License 2.0
60 stars 33 forks source link

BuildBot script for OpenSSL fails to move directories sometimes #81

Closed TechnikEmpire closed 8 years ago

TechnikEmpire commented 8 years ago

Directory.Move(src, dest) fails sometimes. Solution is to wrap the first attempt in a try/catch. If an exception is caught, call Thread.Sleep(few seconds) and then retry without a try/catch. This gives the underlying build task sufficient time to wind down and release any locks it might have on the file system before attempting to move.