fixed bug where ekg does not show "no data" and fixed bug where snmp was not closed correctly

This commit is contained in:
Lucas Pleß 2014-04-24 20:22:41 +02:00
parent 3c2cb48eed
commit cf756d4cf7
2 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public class ActorDisplay {
if (++counterEmg > timeout) { if (++counterEmg > timeout) {
lblEmg.setForeground(offColor); lblEmg.setForeground(offColor);
lblEkg.setText(offText); lblEmg.setText(offText);
} else { } else {
lblEmg.setForeground(onColor); lblEmg.setForeground(onColor);
} }

View File

@ -67,6 +67,8 @@ public class SnmpStatClient {
} }
} }
} }
snmp.close();
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }