@@ -282,6 +282,9 @@ namespace Invercargill {
}
public bool read_in(Bytes? data, ref size_t amount) throws Error {
+ if(amount <= 0) {
+ return false;
+ }
if(data == null) {
return true;