Added some extra debugging output for when the MistPlayer process exits in verbose mode.
This commit is contained in:
parent
521c19f932
commit
ee034c363a
1 changed files with 8 additions and 2 deletions
|
@ -92,7 +92,7 @@ int main(int argc, char** argv){
|
||||||
Stats sts;
|
Stats sts;
|
||||||
CYG_DEFI
|
CYG_DEFI
|
||||||
|
|
||||||
while (in_out.connected() && std::cin.good() && std::cout.good() && (Util::epoch() - lasttime < 60)){
|
while (in_out.connected() && (Util::epoch() - lasttime < 60)){
|
||||||
CYG_INCR
|
CYG_INCR
|
||||||
if (CYG_LOOP in_out.spool()){
|
if (CYG_LOOP in_out.spool()){
|
||||||
while (in_out.Received().size()){
|
while (in_out.Received().size()){
|
||||||
|
@ -202,8 +202,14 @@ int main(int argc, char** argv){
|
||||||
Util::sleep(10);
|
Util::sleep(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StatsSocket.close();
|
StatsSocket.close();
|
||||||
in_out.close();
|
in_out.close();
|
||||||
|
#if DEBUG >= 4
|
||||||
|
if (Util::epoch() - lasttime < 60){
|
||||||
|
std::cerr << "Player exited (disconnect)." << std::endl;
|
||||||
|
}else{
|
||||||
|
std::cerr << "Player exited (timeout)." << std::endl;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue