summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Weller <lhw@ring0.de>2012-06-05 22:28:44 +0200
committerLennart Weller <lhw@ring0.de>2012-06-06 09:59:39 +0200
commitb15581705656ec9e18d51da51eb6c66e87110b4b (patch)
tree0afe857121e32f68e482ffc29de5d00725137234
parent90bb7b126311144960e5c7b23d1607b5d2b8f6b4 (diff)
downloadserial-barcode-scanner-b15581705656ec9e18d51da51eb6c66e87110b4b.tar.bz2
close programm on device loss
-rw-r--r--device.vala2
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);