diff --git a/src/aws.c b/src/aws.c
index 7a92f84fb4ab8b66988ff4350b5d3a33289714c0..48c5d313efc12fe2c504013ecb76ed67b455907e 100644
--- a/src/aws.c
+++ b/src/aws.c
@@ -304,8 +304,8 @@ int connection_send_dynamic(struct connection *conn)
 	// din nou ceea ce a fost citit pana ce el s-a intors in functia connection_send_dynamic
 	if (conn->state != STATE_ASYNC_ONGOING) {
 		int ret = connection_open_file(conn);
-		DIE(ret < 0, "connection_open_file");
 
+		DIE(ret < 0, "connection_open_file");
 		connection_start_async_io(conn);
 		return 0;
 	}