
A couple of our mastiffs have done similar things, 9 times out of 10 they have twisted their legs when they have got a bit too excited and have almost done back flips when catching a ball (quite impressive to see, but very stupid, so no more ball games). If you have a cage or a small room you can put the dog in to reduce it moving around and causing more damage, we section off parts of our house anyway and usually if one has hurts itself or is feeling a bit sorry for itself we put them in there, but it is a room where the family is so we can keep an eye on them until the vets open.
Good old fashion bed rest until you see the vet.