Skip to content

Commit 6ef1b4c

Browse files
committed
server: set Released locally for UI responsiveness
1 parent 0c6c096 commit 6ef1b4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/server/client.go

+4
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ func (c *ControlClient) ToggleSPCOverride(callsign string, spc string, success f
415415
}
416416

417417
func (c *ControlClient) ReleaseDeparture(callsign string, success func(any), err func(error)) {
418+
if ac := c.State.Aircraft[callsign]; ac != nil {
419+
ac.Released = true
420+
}
421+
418422
c.pendingCalls = append(c.pendingCalls,
419423
&util.PendingCall{
420424
Call: c.proxy.ReleaseDeparture(callsign),

0 commit comments

Comments
 (0)