Пример #1
0
 protected void stopConnections()
 {
     db.logout();
     db.closeConnection();
     sshClient.stopPort();
     sshClient.closeConnection();
 }
Пример #2
0
 //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();
     }
 }
Пример #3
0
 //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();
     }
 }