diff --git a/src/lua/console.lua b/src/lua/console.lua
index 480eec4871a820bae614a153c22f80f84e03d475..4eda8b0e5cd645f65aa3e9f7c595db078181c6a0 100644
--- a/src/lua/console.lua
+++ b/src/lua/console.lua
@@ -163,7 +163,6 @@ local function client_print(self, output)
         return
     elseif not output then
         -- disconnect peer
-        local peer = self.client:peer()
         self.client:shutdown()
         self.client:close()
         self.client = nil