summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-10-11 12:21:15 -0700
committerGarrett D'Amore <garrett@damore.org>2017-10-11 12:21:15 -0700
commita21562cfe0e6a48db33f57bbceb0f1a47ed6ede1 (patch)
tree8a41c6906d3b846b47c85020651598e215204536
parentbef53145a6100f10cab590592301ca3993b416fc (diff)
downloadnanomsg-a21562cfe0e6a48db33f57bbceb0f1a47ed6ede1.tar.gz
fixes #895 NN_USOCK_ERROR assertion failure
-rw-r--r--src/transports/utils/streamhdr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/transports/utils/streamhdr.c b/src/transports/utils/streamhdr.c
index 6af8061..42c3b98 100644
--- a/src/transports/utils/streamhdr.c
+++ b/src/transports/utils/streamhdr.c
@@ -1,5 +1,6 @@
/*
Copyright (c) 2013 Martin Sustrik All rights reserved.
+ Copyright 2017 Garrett D'Amore <garrett@damore.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
@@ -290,9 +291,7 @@ invalidhdr:
switch (src) {
case NN_STREAMHDR_SRC_USOCK:
- /* It's safe to ignore usock event when we are stopping, but there
- is only a subset of events that are plausible. */
- nn_assert (type == NN_USOCK_ERROR);
+ /* It's safe to ignore usock event when we are stopping. */
return;
case NN_STREAMHDR_SRC_TIMER: