protected void stopConnections() { db.logout(); db.closeConnection(); sshClient.stopPort(); sshClient.closeConnection(); }
//Stops all connections when the program exits to prevent connection running protected void stopConnections() { db.closeConnection(); if (station.Equals(VOTING_STATION)) { sshClient.stopPort(); sshClient.closeConnection(); } }
//Stops all connections when the program exits to prevent connection running protected void stopConnections() { db.closeConnection(); if (!mainStation) //Main Station does not use SSH! Only Voting Station needs to clean up SSH { sshClient.stopPort(); sshClient.closeConnection(); } }