Skip to content

Commit

Permalink
removed java 8 method
Browse files Browse the repository at this point in the history
  • Loading branch information
dries007 committed Jun 20, 2015
1 parent 0933f7d commit 3999140
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/main/java/net/doubledoordev/backend/server/Server.java
Expand Up @@ -253,17 +253,16 @@ public String getProperty(String key)
*/
public boolean getOnline()
{
return process != null && process.isAlive();
// try
// {
// if (process == null) return false;
// process.exitValue();
// return false;
// }
// catch (IllegalThreadStateException e)
// {
// return true;
// }
try
{
if (process == null) return false;
process.exitValue();
return false;
}
catch (IllegalThreadStateException e)
{
return true;
}
}

/**
Expand Down

0 comments on commit 3999140

Please sign in to comment.