Fixed a race condition in fagi server example.