mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
fixing up the branch
This commit is contained in:
parent
005fb57c31
commit
76391c2c5e
6 changed files with 19 additions and 11 deletions
|
|
@ -1,4 +1,9 @@
|
|||
define(["Game/Core/Protocol/Helper", "Game/Client/GameController"], function(ProtocolHelper, GameController) {
|
||||
define([
|
||||
"Game/Core/Protocol/Helper",
|
||||
"Game/Client/GameController"
|
||||
],
|
||||
|
||||
function(ProtocolHelper, GameController) {
|
||||
|
||||
function Networker(socketLink) {
|
||||
this.socketLink = socketLink;
|
||||
|
|
@ -36,7 +41,7 @@ define(["Game/Core/Protocol/Helper", "Game/Client/GameController"], function(Pro
|
|||
}
|
||||
|
||||
Networker.prototype.onDisconnect = function() {
|
||||
this.gameController.destruct();
|
||||
if(this.gameController) this.gameController.destruct();
|
||||
this.gameController = null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue