diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libmux/mux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmux/mux.c b/src/libmux/mux.c index c225d86b..f8620141 100644 --- a/src/libmux/mux.c +++ b/src/libmux/mux.c @@ -70,7 +70,7 @@ muxrpc(Mux *mux, void *tx) qunlock(&mux->lk); p = _muxrecv(mux); if(p) - tag = mux->gettag(mux, p); + tag = mux->gettag(mux, p) - mux->mintag; else tag = ~0; //print("mux tag %d\n", tag); @@ -171,7 +171,7 @@ Found: mux->nwait++; mux->wait[i] = r; r->tag = i+mux->mintag; - return i; + return r->tag; } static void |