Fixing error
Some checks failed
the build failed

This commit is contained in:
Fabian Stamm 2018-12-03 08:58:37 +01:00
parent 55354c2381
commit 7d9ad57f52

View File

@ -288,7 +288,7 @@ export class DnsCore {
private onMessage: ListenerCallback = async (data: Buffer, sender: string, r) => { private onMessage: ListenerCallback = async (data: Buffer, sender: string, r) => {
let max_size = 128 * 1024; let max_size = 128 * 1024;
let stream = true; let stream = true;
if (typeof r === "number") { if (!r || typeof r === "number") {
max_size = r; max_size = r;
stream = false; stream = false;
} }