浏览代码

fix a typo in session manager

Darien Raymond 8 年之前
父节点
当前提交
bb72264994
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/proxyman/mux/session.go

+ 1 - 1
app/proxyman/mux/session.go

@@ -78,7 +78,7 @@ func (m *SessionManager) CloseIfNoSession() bool {
 		return true
 	}
 
-	if len(m.sessions) == 0 {
+	if len(m.sessions) > 0 {
 		return false
 	}