mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Disable AP mutex as the AP doesn't always release SSH sessions.
This commit is contained in:
committed by
Patrick Fairbank
parent
acbe62c887
commit
4df8664b10
@@ -12,7 +12,6 @@ import (
|
||||
"golang.org/x/crypto/ssh"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
"text/template"
|
||||
)
|
||||
|
||||
@@ -32,7 +31,6 @@ type AccessPoint struct {
|
||||
port int
|
||||
username string
|
||||
password string
|
||||
mutex sync.Mutex
|
||||
}
|
||||
|
||||
func NewAccessPoint(address, username, password string) *AccessPoint {
|
||||
@@ -41,10 +39,6 @@ func NewAccessPoint(address, username, password string) *AccessPoint {
|
||||
|
||||
// Sets up wireless networks for the given set of teams.
|
||||
func (ap *AccessPoint) ConfigureTeamWifi(red1, red2, red3, blue1, blue2, blue3 *model.Team) error {
|
||||
// Make sure multiple configurations aren't being set at the same time.
|
||||
ap.mutex.Lock()
|
||||
defer ap.mutex.Unlock()
|
||||
|
||||
config, err := generateAccessPointConfig(red1, red2, red3, blue1, blue2, blue3)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user