Adafruit Motor Shield and Bridge Library for Yun Shield
Looking at Bridge.begin() description here
 you can see this is blocking function. 


  begin() is a blocking function. Once you call Bridge.begin(), nothing else will happen in your sketch until it has completed. This process takes approximately three seconds.