Fixing error
the build failed Details

This commit is contained in:
Fabian Stamm 2018-12-03 08:58:37 +01:00
parent 55354c2381
commit 7d9ad57f52
1 changed files with 1 additions and 1 deletions

View File

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