       console.log "rcon disconnected for "+instance.id
     else if err.errno is 'ECONNREFUSED'
       console.log "rcon connection refused, trying again in 3 seconds"
+      srvr.disconnect()
       new Fiber(->
         Meteor.setTimeout(->
+          console.log 'rcon attempting connection again'
           srvr.connect()
         , 3000)
       ).run()

    activeLobbies: []
    ip: ""
    enabled: true
  ourID = null
  console.log "new server connected"
  ws.on 'close', ->

Rcon = Meteor.require('rcon')
ws = Meteor.require('ws').Server
serverPassword = "kwxmMKDcuVjQNutZOwZy"
serverVersion = "1.0.6"

idCounter=100

