Fix error handling and method assignment in requestGame function
This commit is contained in:
1 parent
4c2c452b91
commit
b7e7028b6f
1 file changed
+6
-1
@@ -503,7 +503,12 @@ class NetworkService {
|
|||||||
host: url,
|
host: url,
|
||||||
port: port,
|
port: port,
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
null;
|
this.logger.warn({
|
||||||
|
message: error.message,
|
||||||
|
service: this.SERVICE_NAME,
|
||||||
|
method: "requestGame",
|
||||||
|
details: { url, port, gameId },
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!state) {
|
if (!state) {
|
||||||
|
|||||||
Reference in new issue
Block a user