fixed a tiny bug in ServerEventThread.