Use the server ready flag file for discard test also
Merge pull request #37 from simula67/master

Use the server ready flag file for discard test also