yolkbot 0.1.1-alpha.37 → 0.1.1-alpha.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yolkbot",
3
3
  "description": "create a shell shockers (self) bot in under 10 lines.",
4
- "version": "0.1.1-alpha.37",
4
+ "version": "0.1.1-alpha.38",
5
5
  "keywords": [
6
6
  "shell shockers",
7
7
  "shellshock.io",
package/src/bot.js CHANGED
@@ -1914,7 +1914,7 @@ export class Bot {
1914
1914
 
1915
1915
  clearInterval(this.updateIntervalId);
1916
1916
 
1917
- this.game.socket.close();
1917
+ if (this.game) this.game.socket.close();
1918
1918
  this.matchmaker.close();
1919
1919
 
1920
1920
  if (!finishDispatches) this._dispatches = [];