mirror of https://github.com/oupson/FooTerm.git
Fix hup condition check
This commit is contained in:
parent
e15dbaed1b
commit
42e49c5a22
|
@ -243,7 +243,7 @@ namespace Footerm {
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool on_ssh_event(Socket source, GLib.IOCondition condition) {
|
private bool on_ssh_event(Socket source, GLib.IOCondition condition) {
|
||||||
if (condition == IOCondition.HUP) {
|
if ((condition & IOCondition.HUP) == IOCondition.HUP) {
|
||||||
print("The connection has been broken.\n");
|
print("The connection has been broken.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -275,7 +275,7 @@ namespace Footerm {
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool on_slave_event(GLib.IOChannel source, GLib.IOCondition condition) {
|
private bool on_slave_event(GLib.IOChannel source, GLib.IOCondition condition) {
|
||||||
if (condition == IOCondition.HUP) {
|
if ((condition & IOCondition.HUP) == IOCondition.HUP) {
|
||||||
print("The connection has been broken.\n");
|
print("The connection has been broken.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue