Commit 8a98d791 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3025a620
...@@ -1538,6 +1538,13 @@ func (wlink *WatchLink) _serve() (err error) { ...@@ -1538,6 +1538,13 @@ func (wlink *WatchLink) _serve() (err error) {
err = err2 err = err2
} }
// unregister all watches created on this wlink
// XXX locking
for _, w := range wlink.byfile {
delete(w.file.watches, w)
}
wlink.byfile = nil
// write to peer if it was logical error on client side // write to peer if it was logical error on client side
// then .sk.tx to wakeup rx on client side // then .sk.tx to wakeup rx on client side
if err != nil { if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment