From 04bd6d9514a4831813218769ec0ef714e4aa2fb4 Mon Sep 17 00:00:00 2001 From: mmorrison Date: Sun, 13 Jan 2019 22:35:07 -0600 Subject: [PATCH] Add missing optional await (style choice) --- protocols/gamespy3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/gamespy3.js b/protocols/gamespy3.js index c3408ab..e006399 100644 --- a/protocols/gamespy3.js +++ b/protocols/gamespy3.js @@ -146,7 +146,7 @@ class Gamespy3 extends Core { let numPackets = 0; const packets = {}; - return this.udpSend(b,(buffer) => { + return await this.udpSend(b,(buffer) => { const reader = this.reader(buffer); const iType = reader.uint(1); if(iType !== type) return;