projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12055: Merge branch 'master' into 12055-nodemanager-ec2-tags
[arvados.git]
/
services
/
ws
/
session_v0.go
diff --git
a/services/ws/session_v0.go
b/services/ws/session_v0.go
index 58c64231cb53c1204ceed70b0ea030a7050ebb95..4fbfc489cf30fe0e56425e37d909c250f83d967d 100644
(file)
--- a/
services/ws/session_v0.go
+++ b/
services/ws/session_v0.go
@@
-205,6
+205,10
@@
func (sub *v0subscribe) sendOldEvents(sess *v0session) {
// client will probably reconnect and do the
// same thing all over again.
time.Sleep(100 * time.Millisecond)
// client will probably reconnect and do the
// same thing all over again.
time.Sleep(100 * time.Millisecond)
+ if sess.ws.Request().Context().Err() != nil {
+ // Session terminated while we were sleeping
+ return
+ }
}
now := time.Now()
e := &event{
}
now := time.Now()
e := &event{