hopefully fix all issues with random disconnects during stupid panics from GPU mode.
This commit is contained in:
@@ -40,6 +40,7 @@ func HandleAgentUpdate(ctx context.Context, env *agentRuntime.Env, cmdID string,
|
||||
}
|
||||
|
||||
go func() {
|
||||
defer recoverAndLog("agent update", nil)
|
||||
// Let the command_result flush before beginning process replacement.
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
if err := runAgentUpdate(sourceAbs, env.Cfg.EnablePersistence, hideWindow); err != nil {
|
||||
|
||||
@@ -18,6 +18,7 @@ func HandlePing(ctx context.Context, env *runtime.Env, envelope map[string]inter
|
||||
|
||||
pong := wire.Pong{Type: "pong", TS: ts}
|
||||
go func() {
|
||||
defer recoverAndLog("pong sender", nil)
|
||||
if err := wire.WriteMsg(ctx, env.Conn, pong); err != nil {
|
||||
log.Printf("ping: failed to send pong: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user