Update network.cpp

Fix check-player-online issue