diff options
author | Lennart Weller <lhw@ring0.de> | 2012-06-05 22:28:44 +0200 |
---|---|---|
committer | Lennart Weller <lhw@ring0.de> | 2012-06-05 22:28:44 +0200 |
commit | b5ff0f7d68f62ff69ae0d9b357463031d77a64e6 (patch) | |
tree | 5cb9e5ac47bb20061edee2b159d1849960890ecf | |
parent | 66d6b9ce2a2ec3ede7f765b20c35c2d0c1e960c6 (diff) | |
download | serial-barcode-scanner-b5ff0f7d68f62ff69ae0d9b357463031d77a64e6.tar.bz2 |
close programm on device loss
-rw-r--r-- | device.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device.vala b/device.vala index 01b8663..098e25c 100644 --- a/device.vala +++ b/device.vala @@ -131,7 +131,7 @@ public class Device { size_t len, term_char; if((cond & IOCondition.HUP) == IOCondition.HUP) - stdout.printf("HUP. Do something"); + error("Lost device"); try { ret = gio.read_line(out msg, out len, out term_char); |