mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-08-13 16:53:50 -04:00
Pircbot Patch: We are not connected to server if there's nothing to read from the server
This commit is contained in:
parent
c3fe7963a2
commit
ec9b00fd22
@ -208,7 +208,10 @@ public abstract class PircBot implements ReplyConstants {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.setNick(nick);
|
this.setNick(nick);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (line == null) {
|
||||||
|
throw new IOException("Could not connect to server");
|
||||||
}
|
}
|
||||||
|
|
||||||
// This makes the socket timeout on read operations after 5 minutes.
|
// This makes the socket timeout on read operations after 5 minutes.
|
||||||
|
Loading…
Reference in New Issue
Block a user