Merge pull request #485 from Arceliar/bugfix

Bugfix
This commit is contained in:
Arceliar 2019-08-05 18:57:14 -05:00 committed by GitHub
commit 032b86c9a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

BIN
src/.DS_Store vendored

Binary file not shown.

View File

@ -161,7 +161,9 @@ func (r *router) handleTraffic(packet []byte) {
return
}
sinfo, isIn := r.core.sessions.getSessionForHandle(&p.Handle)
if !isIn {
if !isIn || sinfo.cancel == nil {
// FIXME make sure sinfo.cancel can never be nil
util.PutBytes(p.Payload)
return
}
select {