mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
save/restore: don't check for empty waiter.Queue
This hasn't been necessary since cl/318010298. We support saving waiter.Queues now, so they don't have to be empty. PiperOrigin-RevId: 528876775
This commit is contained in:
committed by
gVisor bot
parent
5607094197
commit
0d6cfeafbe
@@ -56,10 +56,6 @@ func (e *endpoint) beforeSave() {
|
||||
default:
|
||||
panic(fmt.Sprintf("endpoint in unknown state %v", e.EndpointState()))
|
||||
}
|
||||
|
||||
if e.waiterQueue != nil && !e.waiterQueue.IsEmpty() {
|
||||
panic("endpoint still has waiters upon save")
|
||||
}
|
||||
}
|
||||
|
||||
// saveEndpoints is invoked by stateify.
|
||||
|
||||
Reference in New Issue
Block a user