[mw-devel] [Git][arthur/mw][master] Assign messages a serial number before routing

Andrew Price welshbyte at sucs.org
Wed Nov 15 17:50:19 GMT 2017


Andrew Price pushed to branch master at Justin Mitchell / mw


Commits:
2aabce15 by Andrew Price at 2017-11-15T17:50:37+00:00
Assign messages a serial number before routing

- - - - -


1 changed file:

- src/server/servsock.c


Changes:

=====================================
src/server/servsock.c
=====================================
--- a/src/server/servsock.c
+++ b/src/server/servsock.c
@@ -358,6 +358,7 @@ void process_msg(ipc_connection_t *conn, ipc_message_t *msg)
 	/**** end of messages to the server
 	 *    all below this point are intended to be retransmitted
 	 */
+	assign_serial(msg);
 
 	/* load sender */
 	struct user from;
@@ -417,7 +418,6 @@ void process_msg(ipc_connection_t *conn, ipc_message_t *msg)
 		printf("Unhandled direct-to-user command %s\n", ipc_nametype(msg->head.type));
 		msg_attach_to_userid(msg, msg->head.dst);
 	}
-	assign_serial(msg);
 	store_message(msg);
 	ipcmsg_destroy(msg);
 }



View it on GitLab: https://projects.sucs.org/arthur/mw/commit/2aabce1507894936898f6fcf5870f752d9183930

---
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/2aabce1507894936898f6fcf5870f752d9183930
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20171115/f0958a02/attachment.html>


More information about the mw-devel mailing list