Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ef9a2175 authored by Maksymilian Osowski's avatar Maksymilian Osowski
Browse files

Fixed a bug in forwarder where calling the stop method on ForwarderManager...

Fixed a bug in forwarder where calling the stop method on ForwarderManager would deadlock. Also some style fixes.

The call would deadlock because lines 62-67 in ConnectionHandler were in the synchronized block. The is.read() would block and therefore call to shutdown() would block too.
is.read()
would never unblock because the stream was ready to be closed, and it needs to be done so from shutdown(). Removing the synchronized block fixes it and is save, as it was not
needed here.

Change-Id: I3326098c47ee18c4eabaa8510b27ca82debce360
parent c6f74139
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment